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

A pointer to a vector of fixed size. More...

#include <vector.hpp>

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

List of all members.

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 FlatVecoperator= (const FlatVec &v) const
 copy vector
const FlatVecoperator= (TSCAL scal) const
 assign scalar value
template<typename TB >
const FlatVecoperator= (const Expr< TB > &v) const
 assign expression
template<typename TB >
const FlatVecoperator+= (const Expr< TB > &v) const
TELEMoperator() (int i) const
 access vector
TELEMoperator[] (int i) const
 access vector
TELEMoperator() (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

Detailed Description

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

A pointer to a vector of fixed size.


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