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

A vector of fixed size. More...

#include <vector.hpp>

Inheritance diagram for ngbla::Vec< S, T >:
ngbla::MatExpr< Vec< S, T > > ngbla::Expr< Vec< 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

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

Detailed Description

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

A vector of fixed size.

Useful as entry type in system vectors.


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