NGSolve
4.9
|
A pointer to 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 | |
FlatVec (T *adata) | |
constructor, no initialization | |
FlatVec (Vec< S, T > &v2) | |
constructor, no initialization | |
const FlatVec & | operator= (const FlatVec &v) const |
copy vector | |
const FlatVec & | operator= (TSCAL scal) const |
assign scalar value | |
template<typename TB > | |
const FlatVec & | operator= (const Expr< TB > &v) const |
assign expression | |
template<typename TB > | |
const FlatVec & | operator+= (const Expr< TB > &v) const |
TELEM & | operator() (int i) const |
access vector | |
TELEM & | operator[] (int i) const |
access vector | |
TELEM & | operator() (int i, int j) const |
access vector | |
const FlatVector< T > | Range (int first, int next) const |
int | Size () const |
vector size | |
int | Height () const |
corresponding matrix height | |
int | Width () const |
corresponding matrix with |
A pointer to a vector of fixed size.