Vector_< ELT > Class Template Reference

This is the Vector class intended to appear in user code. More...

#include <BigMatrix.h>

Inheritance diagram for Vector_< ELT >:
VectorBase< ELT > MatrixBase< ELT >

List of all members.

Public Member Functions

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

Detailed Description

template<class ELT>
class SimTK::Vector_< ELT >

This is the Vector 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 column.


Constructor & Destructor Documentation

Vector_ (  )  [inline]
Vector_ ( const Vector_< ELT > &  src  )  [inline]
Vector_ ( const Base src  )  [inline]
Vector_ ( const BaseNeg src  )  [inline]
Vector_ ( int  m  )  [inline, explicit]
Vector_ ( int  m,
const ELT *  cppInitialValues 
) [inline]
Vector_ ( int  m,
const ELT &  initialValue 
) [inline]
Vector_ ( int  m,
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".

Vector_ ( int  m,
S *  cppData,
bool   
) [inline]
Vector_ ( int  m,
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".

Vector_ ( int  m,
int  stride,
S *  data,
bool   
) [inline]
Vector_ ( const Vec< M, ELT > &  v  )  [inline, explicit]

Convert a Vec to a Vector_.


Member Function Documentation

Vector_& operator*= ( const StdNumber &  t  )  [inline]

Reimplemented from VectorBase< ELT >.

Vector_& operator+= ( const ELT &  b  )  [inline]
Vector_& operator+= ( const VectorBase< EE > &  m  )  [inline]
Vector_& operator-= ( const ELT &  b  )  [inline]
Vector_& operator-= ( const VectorBase< EE > &  m  )  [inline]
Vector_& operator/= ( const StdNumber &  t  )  [inline]

Reimplemented from VectorBase< ELT >.

Vector_& operator= ( const VectorBase< EE > &  m  )  [inline]
Vector_& 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 VectorBase< ELT >.

Vector_& operator= ( const Vector_< 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 VectorBase< ELT >.


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