In file vector.hpp:template<int S, typename T = double> class Vec
A vector of fixed size.
Documentation
A vector of fixed size.
Useful as entry type in system vectors.
Inheritance:
Public Fields
-
typedef typename mat_traits<T>: :TSCAL TSCAL
- is the element double or complex ?
Public Methods
-
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& 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
-
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
Public Members
-
typedef T TELEM
- type of the elements
-
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
-
enum height of matrix
-
enum with of matrix
Private Fields
-
T data[S]
- the values
Inherited from MatExpr:
Inherited from Expr:
T data[S]
- the values
typedef T TELEM
- type of the elements
typedef typename 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
enum height of matrix
- height of matrix
enum with of matrix
- with of matrix
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& 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
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
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.