21 #ifndef TENSOR_VARIANCE_H 22 #define TENSOR_VARIANCE_H 24 #ifndef SHEAF_DLL_SPEC_H 25 #include "SheafSystem/sheaf_dll_spec.h" 29 #include "SheafSystem/std_bitset.h" 33 #include "SheafSystem/std_limits.h" 105 static int capacity();
116 bool variance(
int xi)
const;
121 void put_variance(
int xi,
bool xvalue);
126 void put_variance(
bool xvalue);
132 bool is_covariant(
int xi)
const;
137 bool is_covariant()
const;
143 bool is_contravariant(
int xi)
const;
148 bool is_contravariant()
const;
154 bool is_mixed()
const;
160 bool is_pure()
const;
178 typedef std::bitset<std::numeric_limits<unsigned long int>::digits> variance_type;
184 variance_type _variance;
234 #endif // ifndef TENSOR_VARIANCE_H SHEAF_DLL_SPEC tensor_variance lower(const tensor_variance &x0, int xi)
The variance of the lower of a tensor with variance x0 on index xi.
The "type" of a tensor; specifies the degree and the co- or contra-variance for each index of a tenso...
SHEAF_DLL_SPEC tensor_variance tensor_product(const tensor_variance &x0, const tensor_variance &x1)
The variance of the tensor product of tensors with variance x0 and x1.
SHEAF_DLL_SPEC tensor_variance hook(const tensor_variance &x0)
The variance of the hook of a tensor with variance x0.
SHEAF_DLL_SPEC tensor_variance contract(const tensor_variance &x0, int xp, int xq)
The variance of the contration of a tensor with variance x0 on indices xp and xq. ...
bool operator==(const singly_linked_list< T, Alloc > &lhs, const singly_linked_list< T, Alloc > &rhs)
Checks if the contents of lhs and rhs are equal, that is, whether lhs.size() == rhs.size() and each element in lhs compares equal with the element in rhs at the same position.
SHEAF_DLL_SPEC tensor_variance wedge(const tensor_variance &x0, const tensor_variance &x1)
The variance of the wedge of a tensor with variance x0 with a tnesor with variance x1...
SHEAF_DLL_SPEC tensor_variance star(const tensor_variance &x0, int xdd)
The variance of the Hodge star of a tensor with variance x0 over a vector space of dimension xdd...
Namespace for the fiber_bundles component of the sheaf system.