NGSolve  4.9
Public Types | Public Member Functions | Protected Attributes
ngbla::FlatMatrixFixHeight< H, T > Class Template Reference

A Matrix which height is known at compile time No memory allocation/deallocation. More...

#include <matrix.hpp>

Inheritance diagram for ngbla::FlatMatrixFixHeight< H, T >:
ngbla::MatExpr< FlatMatrixFixHeight< H, T > > ngbla::Expr< FlatMatrixFixHeight< H, T > > ngbla::MatrixFixHeight< H, T >

List of all members.

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 >
FlatMatrixFixHeightoperator= (const Expr< TB > &m)
 assign contents
FlatMatrixFixHeightoperator= (const FlatMatrixFixHeight &m)
 copy contents
FlatMatrixFixHeightoperator= (TSCAL s)
 assign constant
FlatMatrixFixHeightAssign (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

Detailed Description

template<int H, typename T = double>
class ngbla::FlatMatrixFixHeight< H, T >

A Matrix which height is known at compile time No memory allocation/deallocation.

User must provide memory. Matrix is stored colum-wise


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