Augustus 3.4.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
Matrix< T > Class Template Reference

A simple matrix class. Base class for all mathematical matrix objects. More...

#include <matrix.hh>

Public Types

typedef T value_t
 The type of the stored values.
 

Public Member Functions

 Matrix (int n=0, int m=0)
 
 ~Matrix ()
 
value_toperator[] (int i)
 
const value_toperator[] (int i) const
 
value_toperator() (int i, int j)
 
const value_toperator() (int i, int j) const
 
vector< T > getRow (int i) const
 
vector< T > getColumn (int j) const
 
int getColSize () const
 
int getRowSize () const
 
void operator= (const Matrix< value_t > &mat)
 
void assign (int n, int m, value_t t=value_t())
 

Friends

ostream & operator<< (ostream &out, const Matrix< value_t > &mat)
 

Detailed Description

template<class T>
class Matrix< T >

A simple matrix class. Base class for all mathematical matrix objects.

This class provides the functionality of a matrix. It is designed to easily allocate space without the need to free this explicitily.

Author
Emmanouil Stafilarakis
Version
0.1

Constructor & Destructor Documentation

◆ Matrix()

template<class T >
Matrix< T >::Matrix ( int  n = 0,
int  m = 0 
)
inline

Constructor

◆ ~Matrix()

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

Destructor

Member Function Documentation

◆ getRow()

template<class T >
vector< T > Matrix< T >::getRow ( int  i) const
inline

this clones the row

◆ operator[]()

template<class T >
value_t * Matrix< T >::operator[] ( int  i)
inline

this is a row: just a pointer


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