Public Member Functions
fmatvec::RowVector< Fixed< N >, AT > Class Template Reference

This is a rowvector class of general shape in dense storage format. More...

#include <fixed_row_vector.h>

Inheritance diagram for fmatvec::RowVector< Fixed< N >, AT >:
fmatvec::Matrix< General, Fixed< 1 >, Fixed< N >, AT >

List of all members.

Public Member Functions

 RowVector (Noinit ini)
 RowVector (Init ini=INIT, const AT &a=0)
 RowVector (int n, Noinit ini)
 RowVector (int n, Init ini=INIT, const AT &a=0)
 RowVector (const char *str)
 String Constructor.
template<class Col >
 RowVector (const RowVector< Col, AT > &A)
 Copy Constructor.
template<class Type , class Row , class Col >
 RowVector (const Matrix< Type, Row, Col, AT > &A)
 Copy Constructor.
AT & operator() (int i)
 Element operator.
const AT & operator() (int i) const
 Element operator.
AT & e (int i)
const AT & e (int i) const
 Element operator.
RowVector< Fixed< N >, AT > & init (const AT &a=0)
 Initialization.
RowVector< Fixed< N >, AT > & init (Init, const AT &a=0)
RowVector< Fixed< N >, AT > & init (Noinit, const AT &a=0)
int size () const
 Size.
int inc () const
 Increment.
const Vector< Fixed< N >, AT > T () const

Detailed Description

template<int N, class AT>
class fmatvec::RowVector< Fixed< N >, AT >

This is a rowvector class of general shape in dense storage format.

Template class RowVector of type General,Fixed<1>,Fixed<N>,id. shape is general and storage form is dense. The template parameter AT defines the atomic type of the rowvector. Valid types are int, float, double, complex<float> and complex<double>


Constructor & Destructor Documentation

template<int N, class AT >
fmatvec::RowVector< Fixed< N >, AT >::RowVector ( const char *  str) [inline]

String Constructor.

Constructs and initializes a vector with a string in a matlab-like notation. The entries are seperated by semicolons. For example

 RowVector<Fixed<N>,AT>e> x("[3,1,2]");

constructs the vector

\[ x=\begin{pmatrix}3 1 2\end{pmatrix} \]

Parameters:
strThe string the vector will be initialized with.
template<int N, class AT >
template<class Col >
fmatvec::RowVector< Fixed< N >, AT >::RowVector ( const RowVector< Col, AT > &  A) [inline]

Copy Constructor.

See RowVector(const RowVector<Fixed<N>,AT>

template<int N, class AT >
template<class Type , class Row , class Col >
fmatvec::RowVector< Fixed< N >, AT >::RowVector ( const Matrix< Type, Row, Col, AT > &  A) [inline, explicit]

Copy Constructor.

See Vector(const Vector<General, AT>&)


Member Function Documentation

template<int N, class AT >
const AT& fmatvec::RowVector< Fixed< N >, AT >::e ( int  i) const [inline]

Element operator.

See e(int)

template<int N, class AT >
int fmatvec::RowVector< Fixed< N >, AT >::inc ( ) const [inline]

Increment.

Todo:
Docu
Returns:
The increment.
template<int N, class AT >
RowVector< Fixed< N >, AT > & fmatvec::RowVector< Fixed< N >, AT >::init ( const AT &  a = 0) [inline]

Initialization.

Initializes all elements of the calling rowvector with the value given by a.

Parameters:
aValue all elements will be initialized with.
Returns:
A reference to the calling rowvector.
template<int N, class AT >
AT& fmatvec::RowVector< Fixed< N >, AT >::operator() ( int  i) [inline]

Element operator.

Returns a reference to the i-th element.

Parameters:
iThe i-th element.
Returns:
A reference to the element x(i).
Remarks:
The bounds are checked by default. To change this behavior, define FMATVEC_NO_BOUNDS_CHECK.
See also:
operator()(int) const
template<int N, class AT >
const AT& fmatvec::RowVector< Fixed< N >, AT >::operator() ( int  i) const [inline]

Element operator.

See operator()(int)

template<int N, class AT >
int fmatvec::RowVector< Fixed< N >, AT >::size ( ) const [inline]

Size.

Returns:
The size of the rowvector.

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