Fermat
Public Types | Public Methods | Static Public Methods | Public Members | Friends | List of all members
cugar::Matrix< T, N, M > Struct Template Reference

Detailed description

template<typename T, int N, int M>
struct cugar::Matrix< T, N, M >

A dense N x M matrix class over a templated type T.

#include <matrix.h>

Public Types

typedef T value_type
 
typedef T Field_type
 
typedef Vector< T, M > row_vector
 
typedef Vector< T, N > column_vector
 

Public Methods

CUGAR_HOST_DEVICE Matrix (const T s)
 
CUGAR_HOST_DEVICE Matrix (const Vector< T, M > &v)
 
CUGAR_HOST_DEVICE Matrix (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix (const Vector< T, M > *v)
 
CUGAR_HOST_DEVICE Matrix (const T *v)
 
CUGAR_HOST_DEVICE Matrix (const T **v)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator+= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator-= (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator*= (T)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > & operator/= (T)
 
CUGAR_HOST_DEVICE const Vector< T, M > & operator[] (int) const
 
CUGAR_HOST_DEVICE Vector< T, M > & operator[] (int)
 
CUGAR_HOST_DEVICE const Vector< T, M > & get (int) const
 
CUGAR_HOST_DEVICE void set (int, const Vector< T, M > &)
 
CUGAR_HOST_DEVICE const T & operator() (int i, int j) const
 
CUGAR_HOST_DEVICE T & operator() (int i, int j)
 
CUGAR_HOST_DEVICE T det () const
 

Static Public Methods

static CUGAR_HOST_DEVICE Matrix< T, N, M > one ()
 

Public Members

Vector< T, M > r [N]
 

Friends

CUGAR_HOST_DEVICE int operator== (const Matrix< T, N, M > &, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE int operator!= (const Matrix< T, N, M > &, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator- (const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator+ (const Matrix< T, N, M > &, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator- (const Matrix< T, N, M > &, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator* (const Matrix< T, N, M > &, T)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator* (T, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Vector< T, M > operator* (const Vector< T, N > &, const Matrix< T, N, M > &)
 
CUGAR_HOST_DEVICE Vector< T, N > operator* (const Vector< T, N > &, const Matrix< T, N, N > &)
 
CUGAR_HOST_DEVICE Vector< T, N > operator* (const Matrix< T, N, M > &, const Vector< T, M > &)
 
CUGAR_HOST_DEVICE Vector< T, N > operator* (const Matrix< T, N, N > &, const Vector< T, N > &)
 
CUGAR_HOST_DEVICE Matrix< T, N, M > operator/ (const Matrix< T, N, M > &, T)
 

The documentation for this struct was generated from the following files: