|
TBCI Numerical high perf. C++ Library
2.8.0
|
Implementation of datatype templated TBCI::Tensor of dynamical rank. More...
#include "tbci/vector.h"#include "tbci/index.h"
Go to the source code of this file.
Classes | |
| class | TensErr |
| class | CTensor< T > |
| Note (KG, 981214): We don't handle rank == 0. More... | |
| class | Tensor< T > |
| Tensor class including arithmetics. More... | |
Functions | |
| template<typename T > | |
| STD__ ostream & | operator<< (STD__ ostream &os, const CTensor< T > &ct) |
| template<typename T > | |
| STD__ istream & | operator>> (STD__ istream &is, CTensor< T > &ct) |
| template<typename T > | |
| Tensor< T > | ctrmul (const Tensor< T > &t1, const Tensor< T > &t2, const unsigned i1, const unsigned i2) |
| template<typename T > | |
| Tensor< T > | metrmul (const Tensor< T > &metr, const Tensor< T > &t, const unsigned i1, const unsigned i2) |
| template<typename T > | |
| Tensor< T > | dctmul (const Tensor< T > &t0, const Tensor< T > &t1) |
| template<typename T > | |
| Tensor< T > | operator* (const T m, const Tensor< T > &t) |
Implementation of datatype templated TBCI::Tensor of dynamical rank.
Definition in file tensor.h.
| Tensor<T> ctrmul | ( | const Tensor< T > & | t1, |
| const Tensor< T > & | t2, | ||
| const unsigned | i1, | ||
| const unsigned | i2 | ||
| ) |
Definition at line 670 of file tensor.h.
References BCHK, CTensor< T >::calc_offs(), CTensor< T >::data, i, idx_fill_in1(), idx_remove2(), Index::next_idx(), CTensor< T >::rank, CTensor< T >::shape, and Vector< T >::slice().
Definition at line 731 of file tensor.h.
References BVector< T >::append(), Index::next_idx(), CTensor< T >::rank, CTensor< T >::shape, and Vector< T >::slice().
| Tensor<T> metrmul | ( | const Tensor< T > & | metr, |
| const Tensor< T > & | t, | ||
| const unsigned | i1, | ||
| const unsigned | i2 | ||
| ) |
Definition at line 690 of file tensor.h.
References BCHK, BCHKNR, CTensor< T >::calc_offs(), CTensor< T >::data, i, idx_set1(), Index::next_idx(), CTensor< T >::rank, and CTensor< T >::shape.
Definition at line 827 of file tensor.h.
References Tensor< T >::mult().
Definition at line 357 of file tensor.h.
References i, and Index::next_idx().
Definition at line 376 of file tensor.h.
References i, Index::next_idx(), CTensor< T >::noel, and CTensor< T >::rank.
1.8.5