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)

Related Functions

(Note that these are not member functions.)



Matrix_<T> serialization and I/O

These methods are at namespace scope but are logically part of the Vector classes.

These deal with reading and writing Vectors from and to streams, which places an additional requirement on the element type T: the element must support the same operation you are trying to do on the Vector as a whole.



template<class T >
std::ostream & operator<< (std::ostream &o, const RowVectorBase< T > &v)
 Output a human readable representation of a RowVector to an std::ostream (like std::cout).

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=().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  o,
const RowVectorBase< T > &  v 
) [related]

Output a human readable representation of a RowVector to an std::ostream (like std::cout).

The format is [ elements ] where elements is a space-separated list of the RowVector's contents output by invoking the "<<" operator on the elements. This function will not compile if the element type does not support the "<<" operator. No newline is issued before or after the output.


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

Generated on Thu Aug 12 16:38:14 2010 for SimTKcore by  doxygen 1.6.1