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

A Matrix with width known at compile time No memory allocation/deallocation. More...

#include <matrix.hpp>

Inheritance diagram for ngbla::FlatMatrixFixWidth< W, T >:
ngbla::CMCPMatExpr< FlatMatrixFixWidth< W, T > > ngbla::MatExpr< FlatMatrixFixWidth< W, T > > ngbla::Expr< FlatMatrixFixWidth< W, T > > ngbla::MatrixFixWidth< W, T >

List of all members.

Public Types

typedef T TELEM
 entry type
typedef T & TREF
typedef mat_traits< T >::TSCAL TSCAL
 scalar type of entry

Public Member Functions

 FlatMatrixFixWidth () throw ()
 nothing done in default constructor
 FlatMatrixFixWidth (int ah, T *adata) throw ()
 set height and mem
 FlatMatrixFixWidth (int ah, LocalHeap &lh)
 allocates at local heap
 FlatMatrixFixWidth (const FlatMatrixFixWidth &m) throw ()
 copy constructor. copies pointers, not contents
 FlatMatrixFixWidth (const FlatMatrix< TSCAL > &m) throw ()
 copy constructor. copies pointers, not contents
template<int H>
 FlatMatrixFixWidth (const Mat< H, W, TSCAL > &m) throw ()
 ~FlatMatrixFixWidth () throw ()
 do nothing
void AssignMemory (int ah, LocalHeap &lh)
 set size, and assign mem
void AssignMemory (int ah, T *mem) throw ()
 set size, and assign mem
template<typename TB >
const FlatMatrixFixWidthoperator= (const Expr< TB > &m) const
 assign contents
FlatMatrixFixWidthoperator= (const FlatMatrixFixWidth &m) throw ()
 copy contents
FlatMatrixFixWidthoperator= (TSCAL s) throw ()
 assign constant
FlatMatrixFixWidthAssign (const FlatMatrixFixWidth &m) throw ()
 copy size and pointers
TELEMoperator() (int i) const
 access operator, linear access
TELEMoperator() (int i, int j) const
 access operator
int Height () const throw ()
 the height
int Width () const throw ()
 the width
 operator const FlatMatrix< T > () const
const FlatVec< W, T > Row (int i) const
const FixSliceVector< W, T > Col (int i)
const FlatMatrixFixWidth Rows (int first, int next) const
const SliceMatrix< T > Cols (int first, int next) const
const FlatMatrixFixWidth Rows (IntRange range) const
const SliceMatrix< T > Cols (IntRange range) const

Protected Attributes

T * data
 the data
int h
 the height

Detailed Description

template<int W, typename T = double>
class ngbla::FlatMatrixFixWidth< W, T >

A Matrix with width known at compile time No memory allocation/deallocation.

User must provide memory.


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