RowVector_< ELT > Class Template Reference

RowVectors are much less common than Vectors. More...

#include <BigMatrix.h>

Inheritance diagram for RowVector_< ELT >:
RowVectorBase< ELT > MatrixBase< ELT >

List of all members.

Public Member Functions

 RowVector_ ()
 RowVector_ (const RowVector_ &src)
 RowVector_ (const Base &src)
 RowVector_ (const BaseNeg &src)
RowVector_operator= (const RowVector_ &src)
 Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match.
 RowVector_ (int n)
 RowVector_ (int n, const ELT *cppInitialValues)
 RowVector_ (int n, const ELT &initialValue)
 RowVector_ (int n, const S *cppData, bool)
 Construct a Vector which uses borrowed space with assumed element-to-element stride equal to the C++ element spacing.
 RowVector_ (int n, S *cppData, bool)
 RowVector_ (int n, int stride, const S *data, bool)
 Borrowed-space construction with explicit stride supplied as "number of scalars between elements".
 RowVector_ (int n, int stride, S *data, bool)
template<int M>
 RowVector_ (const Row< M, ELT > &v)
 Convert a Row to a RowVector_.
RowVector_operator= (const ELT &v)
 Fill current allocation with copies of element.
template<class EE >
RowVector_operator= (const RowVectorBase< EE > &b)
template<class EE >
RowVector_operator+= (const RowVectorBase< EE > &b)
template<class EE >
RowVector_operator-= (const RowVectorBase< EE > &b)
RowVector_operator*= (const StdNumber &t)
RowVector_operator/= (const StdNumber &t)
RowVector_operator+= (const ELT &b)
RowVector_operator-= (const ELT &b)

Detailed Description

template<class ELT>
class SimTK::RowVector_< ELT >

RowVectors are much less common than Vectors.

However, if a Simmatrix user wants one, this is the class intended to appear in user code. It can be a fixed-size view of someone else's data, or can be a resizable data owner itself, although of course it will always have just one row.


Constructor & Destructor Documentation

RowVector_ (  )  [inline]
RowVector_ ( const RowVector_< ELT > &  src  )  [inline]
RowVector_ ( const Base src  )  [inline]
RowVector_ ( const BaseNeg src  )  [inline]
RowVector_ ( int  n  )  [inline, explicit]
RowVector_ ( int  n,
const ELT *  cppInitialValues 
) [inline]
RowVector_ ( int  n,
const ELT &  initialValue 
) [inline]
RowVector_ ( int  n,
const S *  cppData,
bool   
) [inline]

Construct a Vector which uses borrowed space with assumed element-to-element stride equal to the C++ element spacing.

Last parameter is a dummy to avoid overload conflicts when ELT=S; pass it as "true".

RowVector_ ( int  n,
S *  cppData,
bool   
) [inline]
RowVector_ ( int  n,
int  stride,
const S *  data,
bool   
) [inline]

Borrowed-space construction with explicit stride supplied as "number of scalars between elements".

Last parameter is a dummy to avoid overload conflicts; pass it as "true".

RowVector_ ( int  n,
int  stride,
S *  data,
bool   
) [inline]
RowVector_ ( const Row< M, ELT > &  v  )  [inline, explicit]

Convert a Row to a RowVector_.

References MatrixBase< ELT >::updElt().


Member Function Documentation

RowVector_& operator*= ( const StdNumber &  t  )  [inline]
RowVector_& operator+= ( const ELT &  b  )  [inline]
RowVector_& operator+= ( const RowVectorBase< EE > &  b  )  [inline]
RowVector_& operator-= ( const ELT &  b  )  [inline]
RowVector_& operator-= ( const RowVectorBase< EE > &  b  )  [inline]
RowVector_& operator/= ( const StdNumber &  t  )  [inline]
RowVector_& operator= ( const RowVectorBase< EE > &  b  )  [inline]
RowVector_& operator= ( const ELT &  t  )  [inline]

Fill current allocation with copies of element.

Note that this is not the same behavior as assignment for Matrices, where only the diagonal is set (and everything else is set to zero.)

Reimplemented from RowVectorBase< ELT >.

References RowVectorBase< ELT >::operator=().

RowVector_& operator= ( const RowVector_< ELT > &  b  )  [inline]

Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match.

If owner, we reallocate and copy rhs.

Reimplemented from RowVectorBase< ELT >.

References RowVectorBase< ELT >::operator=().


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

Generated on Wed Dec 30 11:05:21 2009 for SimTKcore by  doxygen 1.6.1