working on tensor - outer product
This commit is contained in:
4
tensor.h
4
tensor.h
@@ -36,9 +36,9 @@
|
||||
#include "smat.h"
|
||||
#include "miscfunc.h"
|
||||
|
||||
//@@@todo - outer product
|
||||
//@@@permutation of individual indices??? how to treat the symmetry groups
|
||||
//@@@todo - index names and contraction by named index list
|
||||
//@@@contraction inside one tensor
|
||||
|
||||
namespace LA {
|
||||
|
||||
@@ -159,6 +159,8 @@ public:
|
||||
inline Tensor& operator/=(const T &a) {data/=a; return *this;};
|
||||
inline Tensor operator/(const T &a) const {Tensor r(*this); r /=a; return r;};
|
||||
|
||||
Tensor operator*(const Tensor &rhs) const; //outer product
|
||||
|
||||
Tensor& conjugateme() {data.conjugateme(); return *this;};
|
||||
inline Tensor conjugate() const {Tensor r(*this); r.conjugateme(); return r;};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user