Public Member Functions | Private Attributes | List of all members
Matrix< T > Class Template Reference

#include <matrix.h>

Public Member Functions

void clear (void)
 
int columns (void)
 
void identity (void)
 
 Matrix ()
 
 Matrix (int rows, int columns)
 
 Matrix (const Matrix< T > &other)
 
int minsize (void)
 
T & operator() (int x, int y)
 
Matrix< T > & operator= (const Matrix< T > &other)
 
Matrix< T > product (Matrix< T > &other)
 
void resize (int rows, int columns)
 
int rows (void)
 
trace (void)
 
Matrix< T > & transpose (void)
 
 ~Matrix ()
 

Private Attributes

int m_columns
 
T ** m_matrix
 
int m_rows
 

Detailed Description

template<class T>
class Matrix< T >

Definition at line 32 of file matrix.h.

Constructor & Destructor Documentation

template<class T>
Matrix< T >::Matrix ( )
inline

Definition at line 34 of file matrix.h.

template<class T>
Matrix< T >::Matrix ( int  rows,
int  columns 
)
inline

Definition at line 41 of file matrix.h.

template<class T>
Matrix< T >::Matrix ( const Matrix< T > &  other)
inline

Definition at line 47 of file matrix.h.

template<class T>
Matrix< T >::~Matrix ( )
inline

Definition at line 86 of file matrix.h.

Member Function Documentation

template<class T>
void Matrix< T >::clear ( void  )
inline

Definition at line 154 of file matrix.h.

template<class T>
int Matrix< T >::columns ( void  )
inline

Definition at line 241 of file matrix.h.

template<class T>
void Matrix< T >::identity ( void  )
inline

Definition at line 143 of file matrix.h.

template<class T>
int Matrix< T >::minsize ( void  )
inline

Definition at line 236 of file matrix.h.

template<class T>
T& Matrix< T >::operator() ( int  x,
int  y 
)
inline

Definition at line 163 of file matrix.h.

template<class T>
Matrix<T>& Matrix< T >::operator= ( const Matrix< T > &  other)
inline

Definition at line 63 of file matrix.h.

template<class T>
Matrix<T> Matrix< T >::product ( Matrix< T > &  other)
inline

Definition at line 217 of file matrix.h.

template<class T>
void Matrix< T >::resize ( int  rows,
int  columns 
)
inline

Definition at line 99 of file matrix.h.

template<class T>
int Matrix< T >::rows ( void  )
inline

Definition at line 246 of file matrix.h.

template<class T>
T Matrix< T >::trace ( void  )
inline

Definition at line 173 of file matrix.h.

template<class T>
Matrix<T>& Matrix< T >::transpose ( void  )
inline

Definition at line 187 of file matrix.h.

Member Data Documentation

template<class T>
int Matrix< T >::m_columns
private

Definition at line 253 of file matrix.h.

template<class T>
T** Matrix< T >::m_matrix
private

Definition at line 251 of file matrix.h.

template<class T>
int Matrix< T >::m_rows
private

Definition at line 252 of file matrix.h.


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


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18