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

Detailed description

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

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

#include <tensor.h>

Public Types

typedef T value_type
 
typedef Tensor< T, 2, N > component_type
 

Public Methods

CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const value_type _v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensoroperator= (const Tensor< T, 3, N > &_v)
 
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 const value_type & operator() (const uint32 i, const uint32 j, const uint32 k) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (const uint32 i, const uint32 j, const uint32 k)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const value_type & operator() (const TensorIndex< 3 > i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (const TensorIndex< 3 > i)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 order () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 dimension () const
 

Public Members

component_type data [N]
 

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