NGSolve
4.9
|
A Matrix class with memory allocation/deallocation. More...
#include <matrix.hpp>
Public Types | |
typedef T | TELEM |
element type | |
typedef mat_traits< T >::TSCAL | TSCAL |
scalar type of elements (double or Complex) | |
Public Member Functions | |
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 (const Matrix &m2) | |
allocate and copy matrix | |
template<typename TB > | |
Matrix (const Expr< TB > &m2) | |
allocate and compute | |
~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 |
A Matrix class with memory allocation/deallocation.