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 Methods
-
Matrix()
- 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
-
template<typename TB> Matrix& operator= (const Expr<TB> & m)
- assign matrix, sizes must match
-
Matrix& operator= (TSCAL s)
- fill matrix with scalar
Public Methods
-
void AssignMemory(int ah, int aw, LocalHeap & lh)
-
void AssignMemory(int ah, int aw, T* mem)
-
FlatMatrix& Assign(const FlatMatrix & m)
-
TELEM& operator() (int i)
-
TELEM& operator() (int i, int j)
-
const TELEM& operator() (int i) const
-
const TELEM& operator() (int i, int j) const
-
TELEM Eval(int i) const
-
TELEM Eval(int i, int j) const
-
const TELEM& REval(int i) const
-
const TELEM& REval(int i, int j) const
-
int Height() const
-
int Width() const
Protected Fields
-
T* data
Inherited from MatExpr:
Inherited from Expr:
Protected Fields
-
int h
-
int w
Protected Methods
-
void CheckRange(int i) const
-
void CheckRange(int i, int j) const
Matrix()
- 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
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++.