#include <tensor.h>


Public Types | |
| typedef T | value_type |
| typedef T | element_type |
| typedef T | aligned_value_type |
Public Member Functions | |
| Tensor () | |
| Tensor (const unsigned dim_rank) | |
| Tensor (const Index &ix) | |
| Tensor (const T &value, const Index &ix) | |
| Tensor (const Tensor< T > &ct) | |
| Tensor (vararg va,...) | |
| Tensor (const T, vararg va,...) | |
| ~Tensor () | |
| Tensor< T > & | operator+= (const Tensor< T > &) |
| Tensor< T > & | operator-= (const Tensor< T > &) |
| Tensor< T > | operator+ (const Tensor< T > &) const |
| Tensor< T > | operator- (const Tensor< T > &) const |
| Tensor< T > & | operator*= (const T m) |
| Tensor< T > & | operator/= (const T m) |
| Tensor< T > & | operator+= (const T m) |
| Tensor< T > & | operator-= (const T m) |
| Tensor< T > | operator* (const T m) const |
| Tensor< T > | mult (const T) const |
| Tensor< T > | operator/ (const T m) const |
| Tensor< T > | operator- () const |
| Tensor< T > | contract (const unsigned, const unsigned) const |
| Tensor< T > | drctmul (const Tensor< T > &) const |
| Tensor< T > | cntrmul (const Tensor< T > &, const unsigned, const unsigned) const |
Friends | |
| Tensor< T > | dctmul (const Tensor< T > &, const Tensor< T > &) |
| Tensor< T > | ctrmul (const Tensor< T > &, const Tensor< T > &, const unsigned, const unsigned) |
| Tensor< T > | metrmul (const Tensor< T > &, const Tensor< T > &, const unsigned, const unsigned) |
Definition at line 461 of file tensor.h.
| typedef T TBCI::Tensor< T >::value_type |
| typedef T TBCI::Tensor< T >::element_type |
| typedef T TBCI::Tensor< T >::aligned_value_type |
| TBCI::Tensor< T >::Tensor | ( | ) | [inline] |
| TBCI::Tensor< T >::Tensor | ( | const unsigned | dim_rank | ) | [inline] |
| TBCI::Tensor< T >::Tensor | ( | const Index & | ix | ) | [inline] |
| TBCI::Tensor< T >::Tensor | ( | const T & | value, | |
| const Index & | ix | |||
| ) | [inline] |
| TBCI::Tensor< T >::Tensor | ( | const Tensor< T > & | ct | ) | [inline] |
| TBCI::Tensor< T >::Tensor | ( | vararg | va, | |
| ... | ||||
| ) | [inline] |
Definition at line 558 of file tensor.h.
References TBCI::CTensor< T >::calclayout(), TBCI::CTensor< T >::calcsize(), TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, TBCI::BVector< T >::resize(), and TBCI::CTensor< T >::shape.
| TBCI::Tensor< T >::Tensor | ( | const T | value, | |
| vararg | va, | |||
| ... | ||||
| ) | [inline] |
Definition at line 541 of file tensor.h.
References TBCI::CTensor< T >::calclayout(), TBCI::CTensor< T >::calcsize(), TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::CTensor< T >::noel, TBCI::CTensor< T >::rank, TBCI::BVector< T >::resize(), and TBCI::CTensor< T >::shape.
| TBCI::Tensor< T >::~Tensor | ( | ) | [inline] |
| Tensor< T > & TBCI::Tensor< T >::operator+= | ( | const Tensor< T > & | t | ) | [inline] |
Definition at line 741 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::Index::next_idx(), TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor< T > & TBCI::Tensor< T >::operator-= | ( | const Tensor< T > & | t | ) | [inline] |
Definition at line 758 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::Index::next_idx(), TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor< T > TBCI::Tensor< T >::operator+ | ( | const Tensor< T > & | t | ) | const [inline] |
Definition at line 775 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::Index::next_idx(), TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor< T > TBCI::Tensor< T >::operator- | ( | const Tensor< T > & | t | ) | const [inline] |
Definition at line 793 of file tensor.h.
References BCHK, TBCI::CTensor< T >::data, TBCI::CTensor< T >::layout, TBCI::Index::next_idx(), TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor<T>& TBCI::Tensor< T >::operator*= | ( | const T | m | ) | [inline] |
| Tensor<T>& TBCI::Tensor< T >::operator/= | ( | const T | m | ) | [inline] |
| Tensor<T>& TBCI::Tensor< T >::operator+= | ( | const T | m | ) | [inline] |
| Tensor<T>& TBCI::Tensor< T >::operator-= | ( | const T | m | ) | [inline] |
| Tensor<T> TBCI::Tensor< T >::operator* | ( | const T | m | ) | const [inline] |
Definition at line 494 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor< T > TBCI::Tensor< T >::mult | ( | const T | m | ) | const [inline] |
Definition at line 812 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
Referenced by TBCI::operator*().
| Tensor<T> TBCI::Tensor< T >::operator/ | ( | const T | m | ) | const [inline] |
Definition at line 506 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor<T> TBCI::Tensor< T >::operator- | ( | ) | const [inline] |
Definition at line 514 of file tensor.h.
References TBCI::CTensor< T >::data, TBCI::CTensor< T >::noel, and TBCI::CTensor< T >::shape.
| Tensor< T > TBCI::Tensor< T >::contract | ( | const unsigned | i1, | |
| const unsigned | i2 | |||
| ) | const [inline] |
Definition at line 575 of file tensor.h.
References BCHK, TBCI::CTensor< T >::calc_offs(), TBCI::CTensor< T >::data, TBCI::idx_fill_in2(), TBCI::idx_remove2(), TBCI::CTensor< T >::shape, and TBCI::TVector< T >::size().
| Tensor< T > TBCI::Tensor< T >::drctmul | ( | const Tensor< T > & | t1 | ) | const [inline] |
Definition at line 710 of file tensor.h.
References TBCI::BVector< T >::append(), TBCI::Index::next_idx(), TBCI::CTensor< T >::rank, TBCI::CTensor< T >::shape, and TBCI::Vector< T >::slice().
| Tensor< T > TBCI::Tensor< T >::cntrmul | ( | const Tensor< T > & | t2, | |
| const unsigned | i1, | |||
| const unsigned | i2 | |||
| ) | const [inline] |
Definition at line 595 of file tensor.h.
References BCHK, TBCI::CTensor< T >::calc_offs(), TBCI::CTensor< T >::data, TBCI::idx_fill_in1(), TBCI::idx_remove2(), TBCI::Index::next_idx(), TBCI::CTensor< T >::rank, TBCI::CTensor< T >::shape, and TBCI::Vector< T >::slice().
1.5.6