FreePOOMA
2.4.1
|
Tensor is an interface class that takes three template parameters: More...
#include <Tensor.h>
Public Types | |
enum | { dimensions = 2 } |
enum | { d = D } |
typedef T | Element_t |
typedef EngineTag | EngineTag_t |
typedef TensorEngine< D, T, EngineTag > | Engine_t |
typedef Engine_t::ElementRef_t | ElementRef_t |
typedef Engine_t::ConstElementRef_t | ConstElementRef_t |
typedef Tensor< D, T, EngineTag > | This_t |
Public Member Functions | |
Tensor () | |
Tensor (const This_t &x) | |
template<int D2, class T2 , class EngineTag2 > | |
Tensor (const Tensor< D2, T2, EngineTag2 > &x) | |
template<class X > | |
Tensor (const X &x) | |
template<class X1 , class X2 > | |
Tensor (const X1 &x, const X2 &y) | |
template<class X1 , class X2 , class X3 > | |
Tensor (const X1 &x, const X2 &y, const X3 &z) | |
template<class X1 , class X2 , class X3 , class X4 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4) | |
template<class X1 , class X2 , class X3 , class X4 , class X5 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, const X5 &x5) | |
template<class X1 , class X2 , class X3 , class X4 , class X5 , class X6 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, const X5 &x5, const X6 &x6) | |
template<class X1 , class X2 , class X3 , class X4 , class X5 , class X6 , class X7 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, const X5 &x5, const X6 &x6, const X7 &x7) | |
template<class X1 , class X2 , class X3 , class X4 , class X5 , class X6 , class X7 , class X8 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, const X5 &x5, const X6 &x6, const X7 &x7, const X8 &x8) | |
template<class X1 , class X2 , class X3 , class X4 , class X5 , class X6 , class X7 , class X8 , class X9 > | |
Tensor (const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, const X5 &x5, const X6 &x6, const X7 &x7, const X8 &x8, const X9 &x9) | |
~Tensor () | |
This_t & | operator= (const This_t &x) |
template<class T1 , class EngineTag1 > | |
This_t & | operator= (const Tensor< d, T1, EngineTag1 > &x) |
template<class V > | |
This_t & | operator= (const V &x) |
ConstElementRef_t | operator() (int i, int j) const |
ElementRef_t | operator() (int i, int j) |
ConstElementRef_t | operator() (int i) const |
ElementRef_t | operator() (int i) |
const Engine_t & | engine () const |
Engine_t & | engine () |
template<class Out > | |
void | print (Out &out) const |
Output to a stream. | |
void | reverseBytes () |
Tensor is an interface class that takes three template parameters:
typedef T Tensor< D, T, EngineTag >::Element_t |
typedef EngineTag Tensor< D, T, EngineTag >::EngineTag_t |
typedef TensorEngine<D,T,EngineTag> Tensor< D, T, EngineTag >::Engine_t |
typedef Engine_t::ElementRef_t Tensor< D, T, EngineTag >::ElementRef_t |
typedef Engine_t::ConstElementRef_t Tensor< D, T, EngineTag >::ConstElementRef_t |
typedef Tensor<D,T,EngineTag> Tensor< D, T, EngineTag >::This_t |
Tensor< D, T, EngineTag >::Tensor | ( | ) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const This_t & | x | ) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const Tensor< D2, T2, EngineTag2 > & | x | ) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X & | x | ) | [inline, explicit] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x, |
const X2 & | y | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x, |
const X2 & | y, | ||
const X3 & | z | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4 | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4, | ||
const X5 & | x5 | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4, | ||
const X5 & | x5, | ||
const X6 & | x6 | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4, | ||
const X5 & | x5, | ||
const X6 & | x6, | ||
const X7 & | x7 | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4, | ||
const X5 & | x5, | ||
const X6 & | x6, | ||
const X7 & | x7, | ||
const X8 & | x8 | ||
) | [inline] |
Tensor< D, T, EngineTag >::Tensor | ( | const X1 & | x1, |
const X2 & | x2, | ||
const X3 & | x3, | ||
const X4 & | x4, | ||
const X5 & | x5, | ||
const X6 & | x6, | ||
const X7 & | x7, | ||
const X8 & | x8, | ||
const X9 & | x9 | ||
) | [inline] |
Tensor< D, T, EngineTag >::~Tensor | ( | ) | [inline] |
This_t& Tensor< D, T, EngineTag >::operator= | ( | const This_t & | x | ) | [inline] |
References Tensor< D, T, EngineTag >::engine().
This_t& Tensor< D, T, EngineTag >::operator= | ( | const Tensor< d, T1, EngineTag1 > & | x | ) | [inline] |
References Tensor< D, T, EngineTag >::engine().
This_t& Tensor< D, T, EngineTag >::operator= | ( | const V & | x | ) | [inline] |
ConstElementRef_t Tensor< D, T, EngineTag >::operator() | ( | int | i, |
int | j | ||
) | const [inline] |
ElementRef_t Tensor< D, T, EngineTag >::operator() | ( | int | i, |
int | j | ||
) | [inline] |
ConstElementRef_t Tensor< D, T, EngineTag >::operator() | ( | int | i | ) | const [inline] |
ElementRef_t Tensor< D, T, EngineTag >::operator() | ( | int | i | ) | [inline] |
const Engine_t& Tensor< D, T, EngineTag >::engine | ( | ) | const [inline] |
Referenced by Tensor< D, T, EngineTag >::operator=().
Engine_t& Tensor< D, T, EngineTag >::engine | ( | ) | [inline] |
void Tensor< D, T, EngineTag >::print | ( | Out & | out | ) | const |
Output to a stream.
The format is: ((t(0,0) t(0,1),... ) ( t(1,0) t(1,1) ... ) ... ))
Referenced by operator<<().
void Tensor< D, T, EngineTag >::reverseBytes | ( | ) | [inline] |