Fermat
Public Types | Public Methods | List of all members
cugar::Tensor< T, 2, N > Struct Template Reference

Detailed description

template<typename T, uint32 N>
struct cugar::Tensor< T, 2, N >

A generic small N^D tensor class with the order set at compile-time

#include <tensor.h>

Inheritance diagram for cugar::Tensor< T, 2, N >:
cugar::Matrix< T, N, N >

Public Types

typedef T value_type
 
typedef Matrix< T, N, N > base_type
 
typedef Tensor< T, 1, N > component_type
 
- Public Types inherited from cugar::Matrix< T, N, N >
typedef T value_type
 
typedef T Field_type
 
typedef Vector< T, M > row_vector
 
typedef Vector< T, N > column_vector
 

Public Methods

CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const value_type _v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const base_type &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensoroperator= (const base_type &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensoroperator= (const Tensor< T, 2, N > &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const value_type & operator() (const TensorIndex< 2 > i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (const TensorIndex< 2 > i)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const value_type & operator() (const uint32 i, const uint32 j) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (const uint32 i, const uint32 j)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const component_typeoperator[] (const uint32 i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE component_typeoperator[] (const uint32 i)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 order () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 dimension () const
 
- Public Methods inherited from cugar::Matrix< T, N, N >
CUGAR_HOST_DEVICE Matrix (const T s)
 
CUGAR_HOST_DEVICE Matrix (const Vector< T, M > &v)
 
CUGAR_HOST_DEVICE Matrix (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix (const Vector< T, M > *v)
 
CUGAR_HOST_DEVICE Matrix (const T *v)
 
CUGAR_HOST_DEVICE Matrix (const T **v)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator+= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator-= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator*= (T)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator/= (T)
 
CUGAR_HOST_DEVICE const Vector< T, M > & operator[] (int) const
 
CUGAR_HOST_DEVICE Vector< T, M > & operator[] (int)
 
CUGAR_HOST_DEVICE const Vector< T, M > & get (int) const
 
CUGAR_HOST_DEVICE void set (int, const Vector< T, M > &)
 
CUGAR_HOST_DEVICE const T & operator() (int i, int j) const
 
CUGAR_HOST_DEVICE T & operator() (int i, int j)
 
CUGAR_HOST_DEVICE T det () const
 

Additional Inherited Members

- Static Public Methods inherited from cugar::Matrix< T, N, N >
static CUGAR_HOST_DEVICE Matrix< T, N, M > one ()
 
- Public Members inherited from cugar::Matrix< T, N, N >
Vector< T, M > r [N]
 

The documentation for this struct was generated from the following file: