NGSolve
4.9
|
A Matrix which height is known at compile time No memory allocation/deallocation. More...
#include <matrix.hpp>
Public Types | |
enum | { IS_LINEAR = 0 } |
typedef T | TELEM |
typedef mat_traits< T >::TSCAL | TSCAL |
Public Member Functions | |
FlatMatrixFixHeight (int aw, T *adata) throw () | |
set height and mem | |
FlatMatrixFixHeight (int aw, LocalHeap &lh) | |
allocates at local heap | |
FlatMatrixFixHeight (const FlatMatrixFixHeight &m) | |
copy constructor. copies pointers, not contents | |
~FlatMatrixFixHeight () throw () | |
do nothing | |
void | AssignMemory (int aw, LocalHeap &lh) |
set size, and assign mem | |
void | AssignMemory (int aw, T *mem) |
set size, and assign mem | |
template<typename TB > | |
FlatMatrixFixHeight & | operator= (const Expr< TB > &m) |
assign contents | |
FlatMatrixFixHeight & | operator= (const FlatMatrixFixHeight &m) |
copy contents | |
FlatMatrixFixHeight & | operator= (TSCAL s) |
assign constant | |
FlatMatrixFixHeight & | Assign (const FlatMatrixFixHeight &m) |
copy size and pointers | |
TELEM & | operator() (int i) |
access operator, linear access | |
TELEM & | operator() (int i, int j) |
access operator | |
const TELEM & | operator() (int i) const |
access operator, linear access | |
const TELEM & | operator() (int i, int j) const |
access operator | |
int | Height () const |
the height | |
int | Width () const |
the width | |
const FlatVec< H, T > | Col (int i) const |
const SliceVector< T > | Row (int i) const |
const FlatMatrixFixWidth< H, T > | Trans () const |
Protected Attributes | |
T * | data |
the data | |
int | w |
the width |
A Matrix which height is known at compile time No memory allocation/deallocation.
User must provide memory. Matrix is stored colum-wise