13 #ifndef ANTI_SYM_TENZOR_H 14 #define ANTI_SYM_TENZOR_H 56 template<
class T,
unsigned D>
99 for (
int i = 1; i < D; ++i)
101 for (
int j = 0; j < i; ++j)
102 (*
this)[((i - 1) * i / 2) + j] = (t(i, j) - t(j, i)) * 0.5;
168 int size(
void)
const {
return sizeof(*this); }
205 return -
X[((j - 1) * j / 2) + i];
207 return X[((i - 1) * i / 2) + j];
222 int lo = i < j ? i : j;
223 int hi = i > j ? i : j;
356 int size(
void)
const {
return sizeof(*this); }
467 template<
class T,
unsigned D>
473 template<
class T,
unsigned D>
494 template<
class T,
unsigned D>
519 template<
class T1,
class T2,
unsigned D>
526 template<
class T1,
class T2,
unsigned D>
533 template<
class T1,
class T2,
unsigned D>
540 template<
class T1,
class T2,
unsigned D>
547 template<
class T1,
class T2,
unsigned D>
554 template<
class T1,
class T2,
unsigned D>
561 template<
class T1,
class T2,
unsigned D>
614 template<
class T,
unsigned D>
615 std::ostream& operator<<(std::ostream& out, const AntiSymTensor<T, D>& rhs)
619 for (
int i = 0; i < D; i++)
621 for (
int j = 0; j < D - 1; j++)
623 out << rhs(i, j) <<
" ";
625 out << rhs(i, D - 1) <<
" ";
632 out <<
" " << rhs(0, 0) <<
" ";
639 template<
class T,
unsigned int D>
643 #endif // ANTI_SYM_TENZOR_H #define PAssert(condition)
Type_t operator()(unsigned int i, unsigned int j) const
AntiSymTensor(const T &x10, const T &x20, const T &x21)
AntiSymTensor< T, 1 > & operator=(const AntiSymTensor< T1, 1 > &)
AntiSymTensor< T, D > & operator=(const T &rhs)
AntiSymTensor< T, D > & operator=(const AntiSymTensor< T, D > &rhs)
helper functions for EinsplineSetBuilder
AntiSymTensor< T, D > & operator*=(const T &rhs)
AssignProxy(const AssignProxy &model)
AssignProxy(Type_t &elem, int where)
Type_t & operator()(unsigned int i)
AntiSymTensor< T, D > & operator-=(const AntiSymTensor< T1, D > &rhs)
AntiSymTensor< T, D > & operator/=(const AntiSymTensor< T1, D > &rhs)
Type_t operator[](unsigned int i) const
AssignProxy(Type_t &elem, int where)
AntiSymTensor(const AntiSymTensor< T, D > &rhs)
AntiSymTensor< T, D > & operator*=(const AntiSymTensor< T1, D > &rhs)
AntiSymTensor< T, 1 > & operator+=(const AntiSymTensor< T1, 1 > &)
MakeReturn< TrinaryNode< FnWhere, typename CreateLeaf< Matrix< T1, C1 > >::Leaf_t, typename CreateLeaf< T2 >::Leaf_t, typename CreateLeaf< T3 >::Leaf_t > >::Expression_t where(const Matrix< T1, C1 > &c, const T2 &t, const T3 &f)
AntiSymTensor< T, D > & operator=(const AntiSymTensor< T1, D > &rhs)
const AntiSymTensor< T, D > & operator+(const AntiSymTensor< T, D > &op)
Type_t operator()(unsigned int i) const
AntiSymTensor< T, 1 > & operator=(const T &rhs)
bool operator==(const AntiSymTensor< T, 1 > &that) const
AntiSymTensor< T, D > & operator+=(const AntiSymTensor< T1, D > &rhs)
Tensor<T,D> class for D by D tensor.
AssignProxy operator()(unsigned int i, unsigned int j)
AntiSymTensor(const T &x00)
Type_t operator()(unsigned int i) const
AntiSymTensor(const AntiSymTensor< T, 1 > &)
AntiSymTensor(DontInitialize)
#define OHMMS_META_BINARY_OPERATORS(TENT, FUNC, TAG)
AntiSymTensor< T, D > transpose(const AntiSymTensor< T, D > &rhs)
AntiSymTensor< T, D > & operator/=(const T &rhs)
AntiSymTensor< T, 1 > & operator/=(const AntiSymTensor< T1, 1 > &)
Type_t & operator[](unsigned int i)
AntiSymTensor(const Tensor< T, D > &t)
AntiSymTensor< T, 1 > & operator/=(const T &)
AntiSymTensor< T, 1 > & operator=(const AntiSymTensor< T, 1 > &)
AssignProxy(const AssignProxy &model)
bool operator!=(const AntiSymTensor< T, 1 > &that) const
Type_t operator()(unsigned int i, unsigned int j) const
AssignProxy & operator=(const Type_t &e)
Tensor< typename BinaryReturn< T1, T2, OpMultiply >::Type_t, D > dot(const AntiSymTensor< T1, D > &lhs, const AntiSymTensor< T2, D > &rhs)
AntiSymTensor< T, 1 > & operator-=(const AntiSymTensor< T1, 1 > &)
AntiSymTensor< T, 1 > & operator*=(const T &)
AssignProxy & operator=(const AssignProxy &a)
AssignProxy operator()(unsigned int i, unsigned int j)
T trace(const AntiSymTensor< T, D > &)
AntiSymTensor< T, 1 > & operator*=(const AntiSymTensor< T1, 1 > &)
AssignProxy & operator=(const Type_t &e)
Type_t operator[](unsigned int i) const
AssignProxy & operator=(const AssignProxy &a)