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

#include <nanovdb/math/Math.h>

Public Member Functions

 Mat2x3 ()=default
__hostdev__ Mat2x3 (T a, T b, T c, T d, T e, T f)
 Constructor given individual array elements, the ordering is in row major form:
template<typename Source>
__hostdev__ Mat2x3 (Source *array)
 Constructor given array of elements, the ordering is in row major form.
__hostdev__ Mat2x3< T > operator+ (const Mat2x3< T > &m) const
 Add two matrices and return the resulting matrix.
__hostdev__ Mat2x3< T > & operator+= (const Mat2x3< T > &m)
 Add a 2x3 matrix to this matrix.
__hostdev__ Mat3x2< 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

◆ Mat2x3() [1/3]

template<typename T>
Mat2x3 ( )
default

◆ Mat2x3() [2/3]

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

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

a b c
d e f

◆ Mat2x3() [3/3]

template<typename T>
template<typename Source>
__hostdev__ Mat2x3 ( Source * array)
inline

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

Member Function Documentation

◆ cols()

constexpr int cols ( )
inlinestaticconstexprprotectedinherited

◆ operator+()

template<typename T>
__hostdev__ Mat2x3< T > operator+ ( const Mat2x3< T > & m) const
inline

Add two matrices and return the resulting matrix.

◆ operator+=()

template<typename T>
__hostdev__ Mat2x3< T > & operator+= ( const Mat2x3< T > & m)
inline

Add a 2x3 matrix to this matrix.

◆ 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__ Mat3x2< T > transpose ( ) const
inline

returns transpose of this

Member Data Documentation

◆ mData

T mData[ROWS *COLS]
protectedinherited