working on tensor - outer product

This commit is contained in:
2024-05-17 16:27:10 +02:00
parent ea2b494abb
commit 052c30fd9d
3 changed files with 53 additions and 2 deletions

View File

@@ -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;};