|
NGSolve
4.9
|
A vector of fixed size. More...
#include <vector.hpp>
Public Types | |
| enum | { SIZE = S } |
| enum | { HEIGHT = S } |
| height of matrix | |
| enum | { WIDTH = 1 } |
| with of matrix | |
| typedef T | TELEM |
| type of the elements | |
| typedef mat_traits< T >::TSCAL | TSCAL |
| is the element double or complex ? | |
|
typedef Vec< S, typename mat_traits< T >::TV_COL > | TV_COL |
| a vec is a S times 1 matrix, the according colume vector | |
|
typedef Vec< 1, typename mat_traits< T >::TV_ROW > | TV_ROW |
| a vec is a S times 1 matrix, the according row vector | |
Public Member Functions | |
| Vec () | |
| constructor, no initialization | |
| Vec (const Vec &v) | |
| copy vector | |
| Vec (const TSCAL &scal) | |
| initialize with values | |
| template<typename TB > | |
| Vec (const Expr< TB > &v) | |
| initialize with expression | |
| Vec (const T &s1, const T &s2) | |
| initialize zeroth and first elements | |
| Vec (const T &s1, const T &s2, const T &s3) | |
| initialize zeroth, first, and second elements | |
| Vec (const T &s1, const T &s2, const T &s3, const T &s4) | |
| initialize zeroth, first, and second elements | |
| Vec & | operator= (const Vec &v) |
| copy vector | |
| Vec & | operator= (TSCAL scal) |
| assign scalar value | |
| template<typename TB > | |
| Vec & | operator= (const Expr< TB > &v) |
| assign expression | |
| TELEM & | operator() (int i) |
| access vector | |
| const TELEM & | operator() (int i) const |
| access vector | |
| TELEM & | operator[] (int i) |
| access vector | |
| const TELEM & | operator[] (int i) const |
| access vector | |
| TELEM & | operator() (int i, int j) |
| access vector | |
| const TELEM & | operator() (int i, int j) const |
| access vector | |
| int | Size () const |
| vector size | |
| int | Height () const |
| corresponding matrix height | |
| int | Width () const |
| corresponding matrix with | |
| const FlatVector< const T > | Range (int first, int next) const |
| const FlatVector< T > | Range (int first, int next) |
A vector of fixed size.
Useful as entry type in system vectors.
1.7.6.1