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

[more]typedef typename mat_traits<T>: :TSCAL TSCAL
scalar type of elements (double or Complex)

Public Methods

[more] Matrix() throw()
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]void SetSize(int ah)
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

Public Members

[more]typedef T TELEM
element type


Inherited from FlatMatrix:

Public Methods

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

Protected Fields

oint h
oint w
oT* data


Inherited from MatExpr:


Inherited from Expr:

otypedef T TELEM
element type

otypedef typename mat_traits<T>: :TSCAL TSCAL
scalar type of elements (double or Complex)

o Matrix() throw()
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

ovoid SetSize(int ah)
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++.