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

[more]typedef typename mat_traits<T>: :TSCAL TSCAL
is the element double or complex ?

Public Methods

[more] Vec()
constructor, no initialization
[more] Vec(const Vec & v)
copy vector
[more] Vec(const TSCAL & scal)
initialize with values
[more]template<typename TB> Vec(const Expr<TB> & v)
initialize with expression
[more] Vec(const T & s1, const T & s2)
initialize zeroth and first elements
[more] Vec(const T & s1, const T & s2, const T & s3)
initialize zeroth, first, and second elements
[more]Vec& operator= (const Vec & v)
copy vector
[more]Vec& operator= (TSCAL scal)
assign scalar value
[more]template<typename TB> Vec& operator= (const Expr<TB> & v)
assign expression
[more]TELEM& operator() (int i)
access vector
[more]const TELEM& operator() (int i) const
access vector
[more]const TELEM& operator() (int i, int j) const
access vector
[more]int Size() const
vector size
[more]int Height() const
corresponding matrix height
[more]int Width() const
corresponding matrix with

Public Members

[more]typedef T TELEM
type of the elements
[more]typedef Vec<S, typename mat_traits<T>::TV_COL> TV_COL
a vec is a S times 1 matrix, the according colume vector
[more]typedef Vec<1, typename mat_traits<T>::TV_ROW> TV_ROW
a vec is a S times 1 matrix, the according row vector
[more]enum height of matrix
[more]enum with of matrix

Private Fields

[more]T data[S]
the values


Inherited from MatExpr:


Inherited from Expr:

oT data[S]
the values

otypedef T TELEM
type of the elements

otypedef typename mat_traits<T>: :TSCAL TSCAL
is the element double or complex ?

otypedef Vec<S, typename mat_traits<T>::TV_COL> TV_COL
a vec is a S times 1 matrix, the according colume vector

otypedef Vec<1, typename mat_traits<T>::TV_ROW> TV_ROW
a vec is a S times 1 matrix, the according row vector

oenum height of matrix
height of matrix

oenum with of matrix
with of matrix

o Vec()
constructor, no initialization

o Vec(const Vec & v)
copy vector

o Vec(const TSCAL & scal)
initialize with values

otemplate<typename TB> Vec(const Expr<TB> & v)
initialize with expression

o Vec(const T & s1, const T & s2)
initialize zeroth and first elements

o Vec(const T & s1, const T & s2, const T & s3)
initialize zeroth, first, and second elements

oVec& operator= (const Vec & v)
copy vector

oVec& operator= (TSCAL scal)
assign scalar value

otemplate<typename TB> Vec& operator= (const Expr<TB> & v)
assign expression

oTELEM& operator() (int i)
access vector

oconst TELEM& operator() (int i) const
access vector

oconst TELEM& operator() (int i, int j) const
access vector

oint Size() const
vector size

oint Height() const
corresponding matrix height

oint 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++.