NGSolve  4.9
Public Types | Public Member Functions
ngbla::Matrix< T > Class Template Reference

A Matrix class with memory allocation/deallocation. More...

#include <matrix.hpp>

Inheritance diagram for ngbla::Matrix< T >:
ngbla::FlatMatrix< T > ngbla::CMCPMatExpr< FlatMatrix< T > > ngbla::MatExpr< FlatMatrix< T > > ngbla::Expr< FlatMatrix< T > >

List of all members.

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 >
Matrixoperator= (const Expr< TB > &m)
 assign matrix, sizes must match
Matrixoperator= (TSCAL s)
 fill matrix with scalar

Detailed Description

template<typename T = double>
class ngbla::Matrix< T >

A Matrix class with memory allocation/deallocation.


The documentation for this class was generated from the following file: