webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
angle::Matrix< T > Class Template Reference

#include <matrix_utils.h>

Public Member Functions

 Matrix (const std::vector< T > &elements, const unsigned int &numRows, const unsigned int &numCols)
 
 Matrix (const std::vector< T > &elements, const unsigned int &size)
 
 Matrix (const T *elements, const unsigned int &size)
 
const Toperator() (const unsigned int &rowIndex, const unsigned int &columnIndex) const
 
Toperator() (const unsigned int &rowIndex, const unsigned int &columnIndex)
 
const Tat (const unsigned int &rowIndex, const unsigned int &columnIndex) const
 
Matrix< Toperator* (const Matrix< T > &m)
 
unsigned int size () const
 
unsigned int rows () const
 
unsigned int columns () const
 
std::vector< Telements () const
 
Matrix< TcompMult (const Matrix< T > &mat1) const
 
Matrix< TouterProduct (const Matrix< T > &mat1) const
 
Matrix< Ttranspose () const
 
T determinant () const
 
Matrix< Tinverse () const
 
void setToIdentity ()
 

Static Public Member Functions

template<unsigned int Size>
static void setToIdentity (T(&matrix)[Size])
 

Constructor & Destructor Documentation

◆ Matrix() [1/3]

template<typename T>
angle::Matrix< T >::Matrix ( const std::vector< T > &  elements,
const unsigned int &  numRows,
const unsigned int &  numCols 
)
inline

◆ Matrix() [2/3]

template<typename T>
angle::Matrix< T >::Matrix ( const std::vector< T > &  elements,
const unsigned int &  size 
)
inline

◆ Matrix() [3/3]

template<typename T>
angle::Matrix< T >::Matrix ( const T elements,
const unsigned int &  size 
)
inline

Member Function Documentation

◆ at()

template<typename T>
const T& angle::Matrix< T >::at ( const unsigned int &  rowIndex,
const unsigned int &  columnIndex 
) const
inline

◆ columns()

template<typename T>
unsigned int angle::Matrix< T >::columns ( ) const
inline

◆ compMult()

template<typename T>
Matrix<T> angle::Matrix< T >::compMult ( const Matrix< T > &  mat1) const
inline

◆ determinant()

template<typename T>
T angle::Matrix< T >::determinant ( ) const
inline

◆ elements()

template<typename T>
std::vector<T> angle::Matrix< T >::elements ( ) const
inline

◆ inverse()

template<typename T>
Matrix<T> angle::Matrix< T >::inverse ( ) const
inline

◆ operator()() [1/2]

template<typename T>
const T& angle::Matrix< T >::operator() ( const unsigned int &  rowIndex,
const unsigned int &  columnIndex 
) const
inline

◆ operator()() [2/2]

template<typename T>
T& angle::Matrix< T >::operator() ( const unsigned int &  rowIndex,
const unsigned int &  columnIndex 
)
inline

◆ operator*()

template<typename T>
Matrix<T> angle::Matrix< T >::operator* ( const Matrix< T > &  m)
inline

◆ outerProduct()

template<typename T>
Matrix<T> angle::Matrix< T >::outerProduct ( const Matrix< T > &  mat1) const
inline

◆ rows()

template<typename T>
unsigned int angle::Matrix< T >::rows ( ) const
inline

◆ setToIdentity() [1/2]

template<typename T>
void angle::Matrix< T >::setToIdentity ( )
inline

◆ setToIdentity() [2/2]

template<typename T>
template<unsigned int Size>
static void angle::Matrix< T >::setToIdentity ( T(&)  matrix[Size])
inlinestatic

◆ size()

template<typename T>
unsigned int angle::Matrix< T >::size ( ) const
inline

◆ transpose()

template<typename T>
Matrix<T> angle::Matrix< T >::transpose ( ) const
inline

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