NGSolve  4.9
Public Types | Public Member Functions
ngbla::VectorMem< S, T > Class Template Reference

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

#include <vector.hpp>

Inheritance diagram for ngbla::VectorMem< S, T >:
ngbla::FlatVector< T > ngbla::CMCPMatExpr< FlatVector< T > > ngbla::MatExpr< FlatVector< T > > ngbla::Expr< FlatVector< T > >

List of all members.

Public Types

typedef mat_traits< T >::TSCAL TSCAL
 the scalar type

Public Member Functions

 VectorMem (int as)
 allocate vector.
 ~VectorMem ()
 deallocates dynamic memory
VectorMemoperator= (TSCAL scal)
 assigns constant value
template<typename TB >
VectorMemoperator= (const Expr< TB > &v)
 evaluates matrix expression

Detailed Description

template<int S, typename T = double>
class ngbla::VectorMem< S, T >

A Vector class with memory allocation/deallocation.

At compile-time, a certain amount of vector entries is defined. If the dynamic size fits into this memory, the vector is allocated in this memory. Otherwise, dynamic memory is allocated.


Constructor & Destructor Documentation

template<int S, typename T = double>
ngbla::VectorMem< S, T >::VectorMem ( int  as) [inline, explicit]

allocate vector.

If the dynamic size fits into the static size, use static memory. Otherwise use dynamic alloation


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