In file matrix.hpp:template<typename T = double> class Matrix
A Matrix class with memory allocation/deallocation
Documentation
A Matrix class with memory allocation/deallocation
Inheritance:
Public Fields
-
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar type of elements (double or Complex)
Public Methods
-
Matrix() throw()
- default constructor
-
Matrix(int ah)
- allocate matrix of size ah * ah
-
Matrix(int ah, int aw)
- allocate matrix of size ah * aw
-
~Matrix()
- delete memory
-
void SetSize(int ah, int aw)
- sets new size of matrix
-
void SetSize(int ah)
- sets new size of matrix
-
template<typename TB> Matrix& operator= (const Expr<TB> & m)
- assign matrix, sizes must match
-
Matrix& operator= (TSCAL s)
- fill matrix with scalar
Public Members
-
typedef T TELEM
- element type
Public Methods
-
void AssignMemory(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
-
void AssignMemory(int ah, int aw, T* mem) throw()
-
FlatMatrix& Assign(const FlatMatrix & m) throw()
-
TELEM& operator() (int i)
-
TELEM& operator() (int i, int j)
-
const TELEM& operator() (int i) const
-
const TELEM& operator() (int i, int j) const
-
int Height() const throw()
-
int Width() const throw()
Protected Fields
-
int h
-
int w
-
T* data
Inherited from MatExpr:
Inherited from Expr:
typedef T TELEM
- element type
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar type of elements (double or Complex)
Matrix() throw()
- default constructor
Matrix(int ah)
- allocate matrix of size ah * ah
Matrix(int ah, int aw)
- allocate matrix of size ah * aw
~Matrix()
- delete memory
void SetSize(int ah, int aw)
- sets new size of matrix
void SetSize(int ah)
- sets new size of matrix
template<typename TB> Matrix& operator= (const Expr<TB> & m)
- assign matrix, sizes must match
Matrix& operator= (TSCAL s)
- fill matrix with scalar
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.