OpenVDB 13.1.0
Loading...
Searching...
No Matches
Mat3x2< T > Class Template Reference

#include <nanovdb/math/Math.h>

Public Member Functions

 Mat3x2 ()=default
template<typename Source>
__hostdev__ Mat3x2 (Source a, Source b, Source c, Source d, Source e, Source f)
 Constructor given individual array elements, the ordering is in row major form:
template<typename Source>
__hostdev__ Mat3x2 (Source *a)
 Constructor given array of elements, the ordering is in row major form.
__hostdev__ Mat2x3< T > transpose () const
 returns transpose of this
__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

◆ Mat3x2() [1/3]

template<typename T>
Mat3x2 ( )
default

◆ Mat3x2() [2/3]

template<typename T>
template<typename Source>
__hostdev__ Mat3x2 ( Source a,
Source b,
Source c,
Source d,
Source e,
Source f )
inline

Constructor given individual array elements, the ordering is in row major form:

a b
c d
e f

◆ Mat3x2() [3/3]

template<typename T>
template<typename Source>
__hostdev__ Mat3x2 ( Source * a)
inline

Constructor given array of elements, the ordering is in row major form.

Member Function Documentation

◆ cols()

constexpr int cols ( )
inlinestaticconstexprprotectedinherited

◆ operator[]() [1/2]

__hostdev__ T * operator[] ( int row)
inlineinherited

◆ operator[]() [2/2]

__hostdev__ const T * operator[] ( int row) const
inlineinherited

◆ rows()

constexpr int rows ( )
inlinestaticconstexprprotectedinherited

◆ size()

constexpr int size ( )
inlinestaticconstexprprotectedinherited

◆ transpose()

template<typename T>
__hostdev__ Mat2x3< T > transpose ( ) const
inline

returns transpose of this

Member Data Documentation

◆ mData

T mData[ROWS *COLS]
protectedinherited