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

Detailed description

template<typename T, uint32 N>
struct cugar::Tensor< T, 0, 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 T component_type
 

Public Methods

CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Tensor (const value_type _d)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE operator value_type () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type operator() () const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const value_type & operator() (TensorIndex< 0 > i) const
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE value_type & operator() (TensorIndex< 0 > i)
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 order () const
 

Public Members

value_type data
 

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