|
TBCI Numerical high perf. C++ Library 2.8.0
|
Note (KG, 981214): We don't handle rank == 0. More...
#include <tensor.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T aligned_value_type | TALIGN(MIN_ALIGN2) |
Public Member Functions | |
| CTensor () | |
| CTensor (const unsigned dim_rank) | |
| CTensor (const Index &ix) | |
| CTensor (const T &value, const Index &ix) | |
| CTensor (const CTensor &ct) | |
| CTensor (vararg va,...) | |
| CTensor (const T, vararg va,...) | |
| ~CTensor () | |
| unsigned long | calc_offs (const Index &ix) const |
| Index | calc_indx (const unsigned long i) const |
| T & | operator() (const Index &ix) |
| tbci_traits< T >::const_refval_type | operator() (const Index &ix) const |
| T & | operator() (vararg va,...) |
| tbci_traits< T >::const_refval_type | operator() (vararg va,...) const |
| T & | operator() (const unsigned long i) |
| tbci_traits< T >::const_refval_type | operator() (const unsigned long i) const |
| const T & | getcref (vararg va,...) const |
| T & | get_lin_idx (const unsigned long i) |
| tbci_traits< T >::const_refval_type | get_lin_idx (const unsigned long i) const |
| unsigned | lin_read (vararg va,...) |
| CTensor< T > & | transpose (const unsigned i, const unsigned j) |
| CTensor< T > & | fill (const T &value) |
| CTensor< T > & | operator= (const CTensor< T > &ct) |
| CTensor< T > & | operator= (const T &value) |
| CTensor< T > & | resize (const Index &ix) |
| CTensor< T > & | resize (const T &val, const Index &ix) |
| CTensor< T > & | resize (const CTensor< T > &ct) |
| T | max (unsigned long &pos) const |
| T | min (unsigned long &pos) const |
| T | max () const |
| T | min () const |
| T | trace () const |
| bool | operator== (const CTensor< T > &ct) |
| bool | operator!= (const CTensor< T > &ct) |
| unsigned long | lin_size (void) const |
| Index | index_size (void) const |
| unsigned | rank_size (void) const |
Protected Member Functions | |
| unsigned long | calcsize (void) |
| unsigned | calclayout () |
Protected Attributes | |
| Vector< T > | data |
| unsigned | rank |
| unsigned long | noel |
| Index | shape |
| Index | layout |
Friends | |
| STD__ ostream & | operator<<FGD (STD__ ostream &, const CTensor< T > &) |
| STD__ istream & | operator>>FGD (STD__ istream &, CTensor< T > &) |
Note (KG, 981214): We don't handle rank == 0.
container class without arithmetics
| typedef T aligned_value_type CTensor< T >::TALIGN(MIN_ALIGN2) |
Definition at line 84 of file tensor.h.
References rank.
Referenced by CTensor(), resize(), resize(), resize(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), and transpose().
Definition at line 221 of file tensor.h.
References calclayout(), calcsize(), data, layout, noel, rank, and shape.
Definition at line 230 of file tensor.h.
References calclayout(), calcsize(), data, layout, noel, rank, and shape.
Definition at line 239 of file tensor.h.
References calclayout(), calcsize(), data, layout, noel, rank, shape, and T.
Definition at line 271 of file tensor.h.
References calclayout(), calcsize(), data, i, layout, noel, rank, and shape.
Definition at line 304 of file tensor.h.
References BCHK, i, index, large, layout, noel, rank, REGISTER, and TVector< T >::size().
Referenced by Tensor< T >::cntrmul(), Tensor< T >::contract(), ctrmul(), metrmul(), operator()(), and operator()().
Definition at line 140 of file tensor.h.
Referenced by operator=(), and F_TMatrix< T >::operator=().
Definition at line 201 of file tensor.h.
References operator==().
Definition at line 101 of file tensor.h.
References calc_offs(), data, and T.
|
inline |
Definition at line 104 of file tensor.h.
References calc_offs(), and data.
Definition at line 186 of file tensor.h.
References data, layout, Index::next_idx(), rank, and shape.
Referenced by operator!=().
Definition at line 155 of file tensor.h.
References calclayout(), calcsize(), CTensor(), data, layout, noel, rank, shape, and TVector< T >::size().
Definition at line 162 of file tensor.h.
References calclayout(), calcsize(), CTensor(), data, layout, noel, rank, shape, TVector< T >::size(), and T.
|
friend |
References STD__.
References STD__.
Definition at line 55 of file tensor.h.
Referenced by Tensor< T >::cntrmul(), Tensor< T >::contract(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), ctrmul(), fill(), getcref(), lin_read(), max(), max(), metrmul(), min(), min(), Tensor< T >::mult(), operator()(), operator()(), operator()(), operator()(), operator()(), operator()(), Tensor< T >::operator*(), Tensor< T >::operator*=(), Tensor< T >::operator+(), Tensor< T >::operator+=(), Tensor< T >::operator+=(), Tensor< T >::operator-(), Tensor< T >::operator-(), Tensor< T >::operator-=(), Tensor< T >::operator-=(), Tensor< T >::operator/(), Tensor< T >::operator/=(), operator<<(), operator=(), operator==(), resize(), resize(), resize(), Tensor< T >::Tensor(), and Tensor< T >::Tensor().
Definition at line 59 of file tensor.h.
Referenced by calc_indx(), calc_offs(), calclayout(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), getcref(), operator()(), operator()(), Tensor< T >::operator+(), Tensor< T >::operator+=(), Tensor< T >::operator-(), Tensor< T >::operator-=(), operator=(), operator==(), resize(), resize(), resize(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), and transpose().
Definition at line 57 of file tensor.h.
Referenced by calc_indx(), calc_offs(), calcsize(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), lin_size(), Tensor< T >::mult(), operator()(), operator()(), Tensor< T >::operator*(), Tensor< T >::operator+(), Tensor< T >::operator+=(), Tensor< T >::operator-(), Tensor< T >::operator-(), Tensor< T >::operator-=(), Tensor< T >::operator/(), operator<<(), operator=(), operator>>(), resize(), resize(), resize(), Tensor< T >::Tensor(), and Tensor< T >::Tensor().
Definition at line 56 of file tensor.h.
Referenced by calc_indx(), calc_offs(), calclayout(), calcsize(), Tensor< T >::cntrmul(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), ctrmul(), dctmul(), Tensor< T >::drctmul(), getcref(), metrmul(), operator()(), operator()(), operator<<(), operator=(), operator==(), operator>>(), rank_size(), resize(), resize(), resize(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), and transpose().
Definition at line 58 of file tensor.h.
Referenced by calc_indx(), calclayout(), calcsize(), Tensor< T >::cntrmul(), Tensor< T >::contract(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), CTensor(), ctrmul(), dctmul(), Tensor< T >::drctmul(), index_size(), metrmul(), Tensor< T >::mult(), Tensor< T >::operator*(), Tensor< T >::operator+(), Tensor< T >::operator+=(), Tensor< T >::operator-(), Tensor< T >::operator-(), Tensor< T >::operator-=(), Tensor< T >::operator/(), operator<<(), operator=(), operator==(), resize(), resize(), resize(), Tensor< T >::Tensor(), Tensor< T >::Tensor(), and transpose().