|
NGSolve
4.9
|
A Vector class with memory allocation/deallocation. More...
#include <vector.hpp>
Public Types | |
| typedef mat_traits< T >::TSCAL | TSCAL |
| the scalar type | |
Public Member Functions | |
| VectorMem (int as) | |
| allocate vector. | |
| ~VectorMem () | |
| deallocates dynamic memory | |
| VectorMem & | operator= (TSCAL scal) |
| assigns constant value | |
| template<typename TB > | |
| VectorMem & | operator= (const Expr< TB > &v) |
| evaluates matrix expression | |
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.
| 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
1.7.6.1