NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Internal Storage Classes for Matrices

Storage class for matrix templates with support for xx, xy, xz, etc., members for appropriate dimensions. More...

Classes

struct   mi::math::Matrix_struct< T, ROW, COL >
  Storage class for a NxM-dimensional matrix class template of fixed dimensions. More...
 
struct   mi::math::Matrix_struct< T, 1, 1 >
  Specialization for 1x1-matrix. More...
 
struct   mi::math::Matrix_struct< T, 2, 1 >
  Specialization for 2x1-matrix. More...
 
struct   mi::math::Matrix_struct< T, 3, 1 >
  Specialization for 3x1-matrix. More...
 
struct   mi::math::Matrix_struct< T, 4, 1 >
  Specialization for 4x1-matrix. More...
 
struct   mi::math::Matrix_struct< T, 1, 2 >
  Specialization for 1x2-matrix. More...
 
struct   mi::math::Matrix_struct< T, 2, 2 >
  Specialization for 2x2-matrix. More...
 
struct   mi::math::Matrix_struct< T, 3, 2 >
  Specialization for 3x2-matrix. More...
 
struct   mi::math::Matrix_struct< T, 4, 2 >
  Specialization for 4x2-matrix. More...
 
struct   mi::math::Matrix_struct< T, 1, 3 >
  Specialization for 1x3-matrix. More...
 
struct   mi::math::Matrix_struct< T, 2, 3 >
  Specialization for 2x3-matrix. More...
 
struct   mi::math::Matrix_struct< T, 3, 3 >
  Specialization for 3x3-matrix. More...
 
struct   mi::math::Matrix_struct< T, 4, 3 >
  Specialization for 4x3-matrix. More...
 
struct   mi::math::Matrix_struct< T, 1, 4 >
  Specialization for 1x4-matrix. More...
 
struct   mi::math::Matrix_struct< T, 2, 4 >
  Specialization for 2x4-matrix. More...
 
struct   mi::math::Matrix_struct< T, 3, 4 >
  Specialization for 3x4-matrix. More...
 
struct   mi::math::Matrix_struct< T, 4, 4 >
  Specialization for 4x4-matrix. More...
 

Functions

template<typename T , Size ROW, Size COL>
T *  mi::math::matrix_base_ptr (Matrix_struct< T, ROW, COL > &mat)
  Returns the base pointer to the matrix data. More...
 
template<typename T , Size ROW, Size COL>
const T *  mi::math::matrix_base_ptr (const Matrix_struct< T, ROW, COL > &mat)
  Returns the base pointer to the matrix data. More...
 

Detailed Description

Storage class for matrix templates with support for xx, xy, xz, etc., members for appropriate dimensions.

Use the mi::math::Matrix template in your programs and this storage class only if you need a POD type, for example for parameter passing.

Include File:
#include <mi/math/matrix.h>

Function Documentation

template<typename T , Size ROW, Size COL>
T* mi::math::matrix_base_ptr ( Matrix_struct< T, ROW, COL > &  mat)
inline

Returns the base pointer to the matrix data.

template<typename T , Size ROW, Size COL>
const T* mi::math::matrix_base_ptr ( const Matrix_struct< T, ROW, COL > &  mat)
inline

Returns the base pointer to the matrix data.