OpenVDB 13.1.0
Loading...
Searching...
No Matches
MatBase< T, ROWS, COLS > Class Template Reference

#include <nanovdb/math/Math.h>

Public Member Functions

 MatBase ()=default
template<typename S>
__hostdev__ MatBase (S *array)
__hostdev__ T * operator[] (int row)
__hostdev__ const T * operator[] (int row) const

Static Protected Member Functions

static constexpr int rows ()
static constexpr int cols ()
static constexpr int size ()

Protected Attributes

mData [ROWS *COLS]

Constructor & Destructor Documentation

◆ MatBase() [1/2]

template<typename T, int ROWS, int COLS>
MatBase ( )
default

◆ MatBase() [2/2]

template<typename T, int ROWS, int COLS>
template<typename S>
__hostdev__ MatBase ( S * array)
inline

Member Function Documentation

◆ cols()

template<typename T, int ROWS, int COLS>
constexpr int cols ( )
inlinestaticconstexprprotected

◆ operator[]() [1/2]

template<typename T, int ROWS, int COLS>
__hostdev__ T * operator[] ( int row)
inline

◆ operator[]() [2/2]

template<typename T, int ROWS, int COLS>
__hostdev__ const T * operator[] ( int row) const
inline

◆ rows()

template<typename T, int ROWS, int COLS>
constexpr int rows ( )
inlinestaticconstexprprotected

◆ size()

template<typename T, int ROWS, int COLS>
constexpr int size ( )
inlinestaticconstexprprotected

Member Data Documentation

◆ mData

template<typename T, int ROWS, int COLS>
T mData[ROWS *COLS]
protected