FreePOOMA
2.4.1
|
Specialization of TensorEngine for BinaryTensorOp. More...
#include <BinaryTensorOp.h>
Public Types | |
enum | { dimensions = 2 } |
typedef T | Element_t |
typedef BinaryTensorOp< V1, V2, Op > | EngineTag_t |
typedef T | ConstElementRef_t |
typedef T | ElementRef_t |
typedef TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > > | This_t |
Public Member Functions | |
TensorEngine (const V1 &v1, const V2 &v2) | |
Element_t | operator() (int i, int j) const |
Friends | |
struct | TensorEngineElem |
Specialization of TensorEngine for BinaryTensorOp.
This has the same interface as any other TensorEngine of course, but the implementation has a const ref to a V1 and a V2. Getting an element applies the operator to V1 and V2, returning the result.
Since it stores references to V1 and V2, don't try to keep one of these things around! This should only be used as part of expression evaluation.
typedef T TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::Element_t |
typedef BinaryTensorOp<V1,V2,Op> TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::EngineTag_t |
typedef T TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::ConstElementRef_t |
typedef T TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::ElementRef_t |
typedef TensorEngine<D,T, BinaryTensorOp<V1,V2,Op> > TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::This_t |
TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::TensorEngine | ( | const V1 & | v1, |
const V2 & | v2 | ||
) | [inline] |
Element_t TensorEngine< D, T, BinaryTensorOp< V1, V2, Op > >::operator() | ( | int | i, |
int | j | ||
) | const [inline] |
friend struct TensorEngineElem [friend] |