#include <tensor.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T | aligned_value_type |
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<< (std::ostream &, const CTensor< T > &) |
| std::istream & | operator>> (std::istream &, CTensor< T > &) |
container class without arithmetics
Definition at line 51 of file tensor.h.
| typedef T TBCI::CTensor< T >::value_type |
| typedef T TBCI::CTensor< T >::element_type |
| typedef T TBCI::CTensor< T >::aligned_value_type |
| TBCI::CTensor< T >::CTensor | ( | ) | [inline] |
| TBCI::CTensor< T >::CTensor | ( | const unsigned | dim_rank | ) | [inline, explicit] |
| TBCI::CTensor< T >::CTensor | ( | const Index & | ix | ) | [inline] |
| TBCI::CTensor< T >::CTensor | ( | const T & | value, | |
| const Index & | ix | |||
| ) | [inline] |
| TBCI::CTensor< T >::CTensor | ( | const CTensor< T > & | ct | ) | [inline] |
| TBCI::CTensor< T >::CTensor | ( | vararg | va, | |
| ... | ||||
| ) | [inline] |
Definition at line 271 of file tensor.h.
References TBCI::CTensor< T >::calclayout(), TBCI::CTensor< T >::calcsize(), TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, and TBCI::CTensor< T >::shape.
| TBCI::CTensor< T >::CTensor | ( | const T | value, | |
| vararg | va, | |||
| ... | ||||
| ) | [inline] |
Definition at line 257 of file tensor.h.
References TBCI::CTensor< T >::calclayout(), TBCI::CTensor< T >::calcsize(), TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| TBCI::CTensor< T >::~CTensor | ( | ) | [inline] |
| unsigned long TBCI::CTensor< T >::calcsize | ( | void | ) | [inline, protected] |
Definition at line 60 of file tensor.h.
Referenced by TBCI::CTensor< T >::CTensor(), and TBCI::Tensor< T >::Tensor().
| unsigned TBCI::CTensor< T >::calclayout | ( | ) | [inline, protected] |
Definition at line 67 of file tensor.h.
References fac().
Referenced by TBCI::CTensor< T >::CTensor(), and TBCI::Tensor< T >::Tensor().
| unsigned long TBCI::CTensor< T >::calc_offs | ( | const Index & | ix | ) | const [inline] |
Definition at line 299 of file tensor.h.
References BCHK, large, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::rank.
Referenced by TBCI::Tensor< T >::cntrmul(), TBCI::Tensor< T >::contract(), TBCI::ctrmul(), and TBCI::metrmul().
| Index TBCI::CTensor< T >::calc_indx | ( | const unsigned long | i | ) | const [inline] |
Definition at line 329 of file tensor.h.
References BCHK, TBCI::Vector< T >::fill(), large, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, and TBCI::CTensor< T >::shape.
| T& TBCI::CTensor< T >::operator() | ( | const Index & | ix | ) | [inline] |
| tbci_traits<T>::const_refval_type TBCI::CTensor< T >::operator() | ( | const Index & | ix | ) | const [inline] |
| T & TBCI::CTensor< T >::operator() | ( | vararg | va, | |
| ... | ||||
| ) | [inline] |
Definition at line 411 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, and TBCI::CTensor< T >::rank.
| tbci_traits< T >::const_refval_type TBCI::CTensor< T >::operator() | ( | vararg | va, | |
| ... | ||||
| ) | const [inline] |
Definition at line 425 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, and TBCI::CTensor< T >::rank.
| T& TBCI::CTensor< T >::operator() | ( | const unsigned long | i | ) | [inline] |
| tbci_traits<T>::const_refval_type TBCI::CTensor< T >::operator() | ( | const unsigned long | i | ) | const [inline] |
| const T & TBCI::CTensor< T >::getcref | ( | vararg | va, | |
| ... | ||||
| ) | const [inline] |
Definition at line 440 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, and TBCI::CTensor< T >::rank.
| T& TBCI::CTensor< T >::get_lin_idx | ( | const unsigned long | i | ) | [inline] |
| tbci_traits<T>::const_refval_type TBCI::CTensor< T >::get_lin_idx | ( | const unsigned long | i | ) | const [inline] |
| unsigned TBCI::CTensor< T >::lin_read | ( | vararg | va, | |
| ... | ||||
| ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::transpose | ( | const unsigned | i, | |
| const unsigned | j | |||
| ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::fill | ( | const T & | value | ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::operator= | ( | const CTensor< T > & | ct | ) | [inline] |
Definition at line 144 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, and TBCI::CTensor< T >::shape.
| CTensor<T>& TBCI::CTensor< T >::operator= | ( | const T & | value | ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::resize | ( | const Index & | ix | ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::resize | ( | const T & | val, | |
| const Index & | ix | |||
| ) | [inline] |
| CTensor<T>& TBCI::CTensor< T >::resize | ( | const CTensor< T > & | ct | ) | [inline] |
Definition at line 169 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, and TBCI::CTensor< T >::shape.
| T TBCI::CTensor< T >::max | ( | unsigned long & | pos | ) | const [inline] |
| T TBCI::CTensor< T >::min | ( | unsigned long & | pos | ) | const [inline] |
| T TBCI::CTensor< T >::max | ( | ) | const [inline] |
| T TBCI::CTensor< T >::min | ( | ) | const [inline] |
| T TBCI::CTensor< T >::trace | ( | ) | const [inline] |
| bool TBCI::CTensor< T >::operator== | ( | const CTensor< T > & | ct | ) | [inline] |
Definition at line 186 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::Index::next_idx(), and TBCI::CTensor< T >::shape.
| bool TBCI::CTensor< T >::operator!= | ( | const CTensor< T > & | ct | ) | [inline] |
| unsigned long TBCI::CTensor< T >::lin_size | ( | void | ) | const [inline] |
| Index TBCI::CTensor< T >::index_size | ( | void | ) | const [inline] |
| unsigned TBCI::CTensor< T >::rank_size | ( | void | ) | const [inline] |
| std:: ostream& operator<< | ( | std::ostream & | os, | |
| const CTensor< T > & | ct | |||
| ) | [friend] |
| std:: istream& operator>> | ( | std::istream & | is, | |
| CTensor< T > & | ct | |||
| ) | [friend] |
Vector<T> TBCI::CTensor< T >::data [protected] |
Definition at line 55 of file tensor.h.
Referenced by TBCI::Tensor< T >::cntrmul(), TBCI::Tensor< T >::contract(), TBCI::CTensor< T >::CTensor(), TBCI::ctrmul(), TBCI::CTensor< T >::getcref(), TBCI::CTensor< T >::lin_read(), TBCI::metrmul(), TBCI::Tensor< T >::mult(), TBCI::CTensor< T >::operator()(), TBCI::Tensor< T >::operator*(), TBCI::Tensor< T >::operator*=(), TBCI::Tensor< T >::operator+(), TBCI::Tensor< T >::operator+=(), TBCI::Tensor< T >::operator-(), TBCI::Tensor< T >::operator-=(), TBCI::Tensor< T >::operator/(), TBCI::Tensor< T >::operator/=(), TBCI::CTensor< T >::operator=(), TBCI::CTensor< T >::operator==(), TBCI::CTensor< T >::resize(), and TBCI::Tensor< T >::Tensor().
unsigned TBCI::CTensor< T >::rank [protected] |
Definition at line 56 of file tensor.h.
Referenced by TBCI::CTensor< T >::calc_indx(), TBCI::CTensor< T >::calc_offs(), TBCI::Tensor< T >::cntrmul(), TBCI::CTensor< T >::CTensor(), TBCI::ctrmul(), TBCI::dctmul(), TBCI::Tensor< T >::drctmul(), TBCI::CTensor< T >::getcref(), TBCI::metrmul(), TBCI::CTensor< T >::operator()(), TBCI::CTensor< T >::operator=(), TBCI::operator>>(), TBCI::CTensor< T >::resize(), and TBCI::Tensor< T >::Tensor().
unsigned long TBCI::CTensor< T >::noel [protected] |
Definition at line 57 of file tensor.h.
Referenced by TBCI::CTensor< T >::calc_indx(), TBCI::CTensor< T >::calc_offs(), TBCI::CTensor< T >::CTensor(), TBCI::Tensor< T >::mult(), TBCI::Tensor< T >::operator*(), TBCI::Tensor< T >::operator+(), TBCI::Tensor< T >::operator+=(), TBCI::Tensor< T >::operator-(), TBCI::Tensor< T >::operator-=(), TBCI::Tensor< T >::operator/(), TBCI::CTensor< T >::operator=(), TBCI::operator>>(), TBCI::CTensor< T >::resize(), and TBCI::Tensor< T >::Tensor().
Index TBCI::CTensor< T >::shape [protected] |
Definition at line 58 of file tensor.h.
Referenced by TBCI::CTensor< T >::calc_indx(), TBCI::Tensor< T >::cntrmul(), TBCI::Tensor< T >::contract(), TBCI::CTensor< T >::CTensor(), TBCI::ctrmul(), TBCI::dctmul(), TBCI::Tensor< T >::drctmul(), TBCI::metrmul(), TBCI::Tensor< T >::mult(), TBCI::Tensor< T >::operator*(), TBCI::Tensor< T >::operator+(), TBCI::Tensor< T >::operator+=(), TBCI::Tensor< T >::operator-(), TBCI::Tensor< T >::operator-=(), TBCI::Tensor< T >::operator/(), TBCI::CTensor< T >::operator=(), TBCI::CTensor< T >::operator==(), TBCI::CTensor< T >::resize(), and TBCI::Tensor< T >::Tensor().
Index TBCI::CTensor< T >::layout [protected] |
Definition at line 59 of file tensor.h.
Referenced by TBCI::CTensor< T >::calc_indx(), TBCI::CTensor< T >::calc_offs(), TBCI::CTensor< T >::getcref(), TBCI::CTensor< T >::operator()(), TBCI::Tensor< T >::operator+(), TBCI::Tensor< T >::operator+=(), TBCI::Tensor< T >::operator-(), TBCI::Tensor< T >::operator-=(), TBCI::CTensor< T >::operator=(), TBCI::CTensor< T >::operator==(), TBCI::CTensor< T >::resize(), and TBCI::Tensor< T >::Tensor().
1.5.6