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

Detailed description

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

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

#include <tensor.h>

Inheritance diagram for cugar::Tensor< T, 1, N >:
cugar::Vector< T, N >

Public Types

typedef T value_type
 
typedef Vector< T, N > base_type
 
typedef T component_type
 
- Public Types inherited from cugar::Vector< T, N >
typedef T value_type
 

Public Methods

CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const value_type _v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const Vector< T, N > &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensoroperator= (const Vector< T, N > &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensoroperator= (const Tensor< T, 1, N > &_v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const value_type & operator() (TensorIndex< 1 > i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (TensorIndex< 1 > i)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 order () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 dimension () const
 
- Public Methods inherited from cugar::Vector< T, N >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector (const T v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector (const T *v)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 dimension () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const T & operator[] (const uint32 i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE T & operator[] (const uint32 i)
 

Additional Inherited Members

- Public Members inherited from cugar::Vector< T, N >
data [DIM]
 
- Static Public Members inherited from cugar::Vector< T, N >
static const uint32 DIMENSION
 

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