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

[more] Matrix()
default constructor
[more] Matrix(int ah)
allocate matrix of size ah * ah
[more] Matrix(int ah, int aw)
allocate matrix of size ah * aw
[more] ~Matrix()
delete memory
[more]void SetSize(int ah, int aw)
sets new size of matrix
[more]template<typename TB> Matrix& operator= (const Expr<TB> & m)
assign matrix, sizes must match
[more]Matrix& operator= (TSCAL s)
fill matrix with scalar


Inherited from FlatMatrix:

Public Methods

ovoid AssignMemory(int ah, int aw, LocalHeap & lh)
ovoid AssignMemory(int ah, int aw, T* mem)
oFlatMatrix& Assign(const FlatMatrix & m)
oTELEM& operator() (int i)
oTELEM& operator() (int i, int j)
oconst TELEM& operator() (int i) const
oconst TELEM& operator() (int i, int j) const
oTELEM Eval(int i) const
oTELEM Eval(int i, int j) const
oconst TELEM& REval(int i) const
oconst TELEM& REval(int i, int j) const
oint Height() const
oint Width() const

Protected Fields

oT* data


Inherited from MatExpr:


Inherited from Expr:


Inherited from BaseFlatMatrix:

Protected Fields

oint h
oint w

Protected Methods

ovoid CheckRange(int i) const
ovoid CheckRange(int i, int j) const

o Matrix()
default constructor

o Matrix(int ah)
allocate matrix of size ah * ah

o Matrix(int ah, int aw)
allocate matrix of size ah * aw

o ~Matrix()
delete memory

ovoid SetSize(int ah, int aw)
sets new size of matrix

otemplate<typename TB> Matrix& operator= (const Expr<TB> & m)
assign matrix, sizes must match

oMatrix& 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++.