|
NGSolve
4.9
|
A Matrix with width known at compile time No memory allocation/deallocation. More...
#include <matrix.hpp>
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 FlatMatrixFixWidth & | operator= (const Expr< TB > &m) const |
| assign contents | |
| FlatMatrixFixWidth & | operator= (const FlatMatrixFixWidth &m) throw () |
| copy contents | |
| FlatMatrixFixWidth & | operator= (TSCAL s) throw () |
| assign constant | |
| FlatMatrixFixWidth & | Assign (const FlatMatrixFixWidth &m) throw () |
| copy size and pointers | |
| TELEM & | operator() (int i) const |
| access operator, linear access | |
| TELEM & | operator() (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 | |
A Matrix with width known at compile time No memory allocation/deallocation.
User must provide memory.
1.7.6.1