All Classes Namespaces Functions Typedefs Enumerations Pages
Public Member Functions | List of all members
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 >

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. More...
 
template<class Col >
 RowVector (const RowVector< Col, AT > &A)
 Copy Constructor. More...
 
template<class Type , class Row , class Col >
 RowVector (const Matrix< Type, Row, Col, AT > &A)
 Copy Constructor. More...
 
AT & operator() (int i)
 Element operator. More...
 
const AT & operator() (int i) const
 Element operator. More...
 
AT & e (int i)
 
const AT & e (int i) const
 Element operator. More...
 
RowVector< Fixed< N >, AT > & init (const AT &a=0)
 Initialization. More...
 
RowVector< Fixed< N >, AT > & init (Init, const AT &a=0)
 
RowVector< Fixed< N >, AT > & init (Noinit, const AT &a=0)
 
int size () const
 Size. More...
 
int inc () const
 Increment. More...
 
const Vector< Fixed< N >, AT > T () const
 
- Public Member Functions inherited from fmatvec::Matrix< General, Fixed< 1 >, Fixed< N >, AT >
AT & operator() (int i, int j)
 Standard constructor. More...
 
const AT & operator() (int i, int j) const
 Element operator. More...
 
AT & e (int i, int j)
 
const AT & e (int i, int j) const
 
int rows () const
 Number of rows. More...
 
int cols () const
 Number of columns. More...
 
 operator std::vector< std::vector< AT > > ()
 Cast to std::vector<std::vector<AT> >. More...
 

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)
inlineexplicit

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:

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML