NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Matrix< T, L > Class Template Reference

#include <Math.hpp>

Inherits FW::MatrixBase< T, L, Matrix< T, L > >.

Public Member Functions

FW_CUDA_FUNC Matrix (void)
 
FW_CUDA_FUNC Matrix (T a)
 
FW_CUDA_FUNC const T * getPtr (void) const
 
FW_CUDA_FUNC T * getPtr (void)
 
template<class V >
FW_CUDA_FUNC Matrix (const MatrixBase< T, L, V > &v)
 
template<class V >
FW_CUDA_FUNC Matrix & operator= (const MatrixBase< T, L, V > &v)
 
- Public Member Functions inherited from FW::MatrixBase< T, L, Matrix< T, L > >
FW_CUDA_FUNC MatrixBase (void)
 
FW_CUDA_FUNC const T * getPtr (void) const
 
FW_CUDA_FUNC T * getPtr (void)
 
FW_CUDA_FUNC const T & get (int idx) const
 
FW_CUDA_FUNC T & get (int idx)
 
FW_CUDA_FUNC const T & get (int r, int c) const
 
FW_CUDA_FUNC T & get (int r, int c)
 
FW_CUDA_FUNC T set (int idx, const T &a)
 
FW_CUDA_FUNC T set (int r, int c, const T &a)
 
FW_CUDA_FUNC void set (const T &a)
 
FW_CUDA_FUNC void set (const T *ptr)
 
FW_CUDA_FUNC void set (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC const Vector< T, L > & col (int c) const
 
FW_CUDA_FUNC Vector< T, L > & col (int c)
 
FW_CUDA_FUNC const Vector< T, L > & getCol (int c) const
 
FW_CUDA_FUNC Vector< T, L > getRow (int r) const
 
FW_CUDA_FUNC void setZero (void)
 
FW_CUDA_FUNC void setIdentity (void)
 
void print (void) const
 
FW_CUDA_FUNC T det (void) const
 
FW_CUDA_FUNC S transposed (void) const
 
FW_CUDA_FUNC S inverted (void) const
 
FW_CUDA_FUNC void transpose (void)
 
FW_CUDA_FUNC void invert (void)
 
FW_CUDA_FUNC const T & operator() (int r, int c) const
 
FW_CUDA_FUNC T & operator() (int r, int c)
 
FW_CUDA_FUNC S & operator= (const T &a)
 
FW_CUDA_FUNC S & operator= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator+= (const T &a)
 
FW_CUDA_FUNC S & operator+= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator-= (const T &a)
 
FW_CUDA_FUNC S & operator-= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator*= (const T &a)
 
FW_CUDA_FUNC S & operator*= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator/= (const T &a)
 
FW_CUDA_FUNC S & operator/= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator%= (const T &a)
 
FW_CUDA_FUNC S & operator%= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator&= (const T &a)
 
FW_CUDA_FUNC S & operator&= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator|= (const T &a)
 
FW_CUDA_FUNC S & operator|= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator^= (const T &a)
 
FW_CUDA_FUNC S & operator^= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator<<= (const T &a)
 
FW_CUDA_FUNC S & operator<<= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S & operator>>= (const T &a)
 
FW_CUDA_FUNC S & operator>>= (const MatrixBase< T, L, V > &v)
 
FW_CUDA_FUNC S operator+ (void) const
 
FW_CUDA_FUNC S operator+ (const T &a) const
 
FW_CUDA_FUNC S operator+ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator- (void) const
 
FW_CUDA_FUNC S operator- (const T &a) const
 
FW_CUDA_FUNC S operator- (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator~ (void) const
 
FW_CUDA_FUNC S operator* (const T &a) const
 
FW_CUDA_FUNC V operator* (const VectorBase< T, L, V > &v) const
 
FW_CUDA_FUNC V operator* (const VectorBase< T, L-1, V > &v) const
 
FW_CUDA_FUNC S operator* (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator/ (const T &a) const
 
FW_CUDA_FUNC S operator/ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator% (const T &a) const
 
FW_CUDA_FUNC S operator% (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator& (const T &a) const
 
FW_CUDA_FUNC S operator& (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator| (const T &a) const
 
FW_CUDA_FUNC S operator| (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator^ (const T &a) const
 
FW_CUDA_FUNC S operator^ (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator<< (const T &a) const
 
FW_CUDA_FUNC S operator<< (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC S operator>> (const T &a) const
 
FW_CUDA_FUNC S operator>> (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC void setCol (int c, const VectorBase< T, L, V > &v)
 
FW_CUDA_FUNC void setRow (int r, const VectorBase< T, L, V > &v)
 
FW_CUDA_FUNC bool operator== (const MatrixBase< T, L, V > &v) const
 
FW_CUDA_FUNC bool operator!= (const MatrixBase< T, L, V > &v) const
 

Static Public Member Functions

static FW_CUDA_FUNC Matrix fromPtr (const T *ptr)
 
- Static Public Member Functions inherited from FW::MatrixBase< T, L, Matrix< T, L > >
static FW_CUDA_FUNC S translate (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNC S scale (const VectorBase< T, L-1, V > &v)
 
static FW_CUDA_FUNC S scale (const VectorBase< T, L, V > &v)
 

Detailed Description

template<class T, int L>
class FW::Matrix< T, L >

Definition at line 612 of file Math.hpp.

Constructor & Destructor Documentation

template<class T, int L>
FW_CUDA_FUNC FW::Matrix< T, L >::Matrix ( void  )
inline

Definition at line 615 of file Math.hpp.

template<class T, int L>
FW_CUDA_FUNC FW::Matrix< T, L >::Matrix ( T  a)
inlineexplicit

Definition at line 616 of file Math.hpp.

template<class T, int L>
template<class V >
FW_CUDA_FUNC FW::Matrix< T, L >::Matrix ( const MatrixBase< T, L, V > &  v)
inline

Definition at line 622 of file Math.hpp.

Member Function Documentation

template<class T, int L>
static FW_CUDA_FUNC Matrix FW::Matrix< T, L >::fromPtr ( const T *  ptr)
inlinestatic

Definition at line 620 of file Math.hpp.

template<class T, int L>
FW_CUDA_FUNC const T* FW::Matrix< T, L >::getPtr ( void  ) const
inline

Definition at line 618 of file Math.hpp.

template<class T, int L>
FW_CUDA_FUNC T* FW::Matrix< T, L >::getPtr ( void  )
inline

Definition at line 619 of file Math.hpp.

template<class T, int L>
template<class V >
FW_CUDA_FUNC Matrix& FW::Matrix< T, L >::operator= ( const MatrixBase< T, L, V > &  v)
inline

Definition at line 623 of file Math.hpp.


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