VectorBase Class Template Reference

#include <BigMatrix.h>

Inheritance diagram for VectorBase:

MatrixBase TmpVectorViewT Vector_ VectorView_ List of all members.

Detailed Description

template<class ELT>
class SimTK::VectorBase< ELT >

This is a dataless rehash of the MatrixBase class to specialize it for Vectors.

This mostly entails overriding a few of the methods. Note that all the MatrixBase operations remain available if you static_cast<> this up to a MatrixBase.


Public Member Functions

 VectorBase ()
 VectorBase (const VectorBase &b)
VectorBaseoperator= (const VectorBase &b)
 VectorBase (int m, bool lockNrow=false)
 VectorBase (int m, int leadingDim, const Scalar *s)
 VectorBase (int m, int leadingDim, Scalar *s)
 VectorBase (int m, const ELT &t)
 VectorBase (int m, bool lockNrow, const ELT &t)
 VectorBase (int m, const ELT *p)
 VectorBase (int m, bool lockNrow, const ELT *p)
 VectorBase (MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s)
 VectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s)
 VectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::DeepCopy &d)
VectorBaseoperator *= (const StdNumber &t)
VectorBaseoperator/= (const StdNumber &t)
VectorBaseoperator+= (const VectorBase &r)
VectorBaseoperator-= (const VectorBase &r)
template<class EE>
VectorBaseoperator= (const VectorBase< EE > &b)
template<class EE>
VectorBaseoperator+= (const VectorBase< EE > &b)
template<class EE>
VectorBaseoperator-= (const VectorBase< EE > &b)
VectorBaseoperator= (const ELT &t)
template<class EE>
VectorBaserowScaleInPlace (const VectorBase< EE > &v)
template<class EE>
void rowScale (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const
template<class EE>
EltResult< EE >::Mul rowScale (const VectorBase< EE > &v) const
VectorBaseelementwiseInvertInPlace ()
 Set this[i] = this[i]^-1.
void elementwiseInvert (VectorBase< typename CNT< ELT >::TInvert > &out) const
 Set supplied out[i] = this[i]^-1.
VectorBase< typename CNT<
ELT >::TInvert
elementwiseInvert () const
 Return out[i]=this[i]^-1 as function return.
template<class EE>
VectorBaseelementwiseMultiplyInPlace (const VectorBase< EE > &r)
template<class EE>
void elementwiseMultiply (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const
template<class EE>
EltResult< EE >::Mul elementwiseMultiply (const VectorBase< EE > &v) const
template<class EE>
VectorBaseelementwiseMultiplyFromLeftInPlace (const VectorBase< EE > &r)
template<class EE>
void elementwiseMultiplyFromLeft (const VectorBase< EE > &v, typename VectorBase< EE >::template EltResult< ELT >::Mul &out) const
template<class EE>
VectorBase< EE >::template
EltResult< ELT >::Mul 
elementwiseMultiplyFromLeft (const VectorBase< EE > &v) const
template<class EE>
VectorBaseelementwiseDivideInPlace (const VectorBase< EE > &r)
template<class EE>
void elementwiseDivide (const VectorBase< EE > &v, typename EltResult< EE >::Dvd &out) const
template<class EE>
EltResult< EE >::Dvd elementwiseDivide (const VectorBase< EE > &v) const
template<class EE>
VectorBaseelementwiseDivideFromLeftInPlace (const VectorBase< EE > &r)
template<class EE>
void elementwiseDivideFromLeft (const VectorBase< EE > &v, typename VectorBase< EE >::template EltResult< ELT >::Dvd &out) const
template<class EE>
VectorBase< EE >::template
EltResult< ELT >::Dvd 
elementwiseDivideFromLeft (const VectorBase< EE > &v) const
 operator const Vector_ () const
 operator Vector_ ()
 operator const VectorView_ () const
 operator VectorView_ ()
 operator const Matrix_ () const
 operator Matrix_ ()
 operator const MatrixView_ () const
 operator MatrixView_ ()
int size () const
int nrow () const
int ncol () const
TAbs abs () const
const ELT & operator[] (int i) const
ELT & operator[] (int i)
const ELT & operator() (int i) const
ELT & operator() (int i)
VectorView_< ELT > operator() (int i, int m) const
VectorView_< ELT > operator() (int i, int m)
THerm transpose () const
THerm updTranspose ()
THerm operator~ () const
THerm operator~ ()
const VectorBaseoperator+ () const
const TNegnegate () const
TNegupdNegate ()
const TNegoperator- () const
TNegoperator- ()
VectorBaseresize (int m)
VectorBaseresizeKeep (int m)
ELT sum () const
VectorIterator< ELT, VectorBase<
ELT > > 
begin ()
VectorIterator< ELT, VectorBase<
ELT > > 
end ()

Classes

struct  EltResult


Constructor & Destructor Documentation

VectorBase (  )  [inline]

VectorBase ( const VectorBase< ELT > &  b  )  [inline]

VectorBase ( int  m,
bool  lockNrow = false 
) [inline, explicit]

VectorBase ( int  m,
int  leadingDim,
const Scalar *  s 
) [inline]

VectorBase ( int  m,
int  leadingDim,
Scalar *  s 
) [inline]

VectorBase ( int  m,
const ELT &  t 
) [inline]

VectorBase ( int  m,
bool  lockNrow,
const ELT &  t 
) [inline]

VectorBase ( int  m,
const ELT *  p 
) [inline]

VectorBase ( int  m,
bool  lockNrow,
const ELT *  p 
) [inline]

VectorBase ( MatrixHelper< Scalar > &  h,
const typename MatrixHelper< Scalar >::ShallowCopy &  s 
) [inline]

VectorBase ( const MatrixHelper< Scalar > &  h,
const typename MatrixHelper< Scalar >::ShallowCopy &  s 
) [inline]

VectorBase ( const MatrixHelper< Scalar > &  h,
const typename MatrixHelper< Scalar >::DeepCopy &  d 
) [inline]


Member Function Documentation

TAbs abs (  )  const [inline]

Reimplemented from MatrixBase.

VectorIterator<ELT, VectorBase<ELT> > begin (  )  [inline]

EltResult<EE>::Dvd elementwiseDivide ( const VectorBase< EE > &  v  )  const [inline]

void elementwiseDivide ( const VectorBase< EE > &  v,
typename EltResult< EE >::Dvd &  out 
) const [inline]

VectorBase<EE>::template EltResult<ELT>::Dvd elementwiseDivideFromLeft ( const VectorBase< EE > &  v  )  const [inline]

void elementwiseDivideFromLeft ( const VectorBase< EE > &  v,
typename VectorBase< EE >::template EltResult< ELT >::Dvd &  out 
) const [inline]

VectorBase& elementwiseDivideFromLeftInPlace ( const VectorBase< EE > &  r  )  [inline]

VectorBase& elementwiseDivideInPlace ( const VectorBase< EE > &  r  )  [inline]

VectorBase<typename CNT<ELT>::TInvert> elementwiseInvert (  )  const [inline]

Return out[i]=this[i]^-1 as function return.

Reimplemented from MatrixBase.

void elementwiseInvert ( VectorBase< typename CNT< ELT >::TInvert > &  out  )  const [inline]

Set supplied out[i] = this[i]^-1.

VectorBase& elementwiseInvertInPlace (  )  [inline]

Set this[i] = this[i]^-1.

Reimplemented from MatrixBase.

EltResult<EE>::Mul elementwiseMultiply ( const VectorBase< EE > &  v  )  const [inline]

void elementwiseMultiply ( const VectorBase< EE > &  v,
typename EltResult< EE >::Mul &  out 
) const [inline]

VectorBase<EE>::template EltResult<ELT>::Mul elementwiseMultiplyFromLeft ( const VectorBase< EE > &  v  )  const [inline]

void elementwiseMultiplyFromLeft ( const VectorBase< EE > &  v,
typename VectorBase< EE >::template EltResult< ELT >::Mul &  out 
) const [inline]

VectorBase& elementwiseMultiplyFromLeftInPlace ( const VectorBase< EE > &  r  )  [inline]

VectorBase& elementwiseMultiplyInPlace ( const VectorBase< EE > &  r  )  [inline]

VectorIterator<ELT, VectorBase<ELT> > end (  )  [inline]

int ncol (  )  const [inline]

Reimplemented from MatrixBase.

const TNeg& negate (  )  const [inline]

Reimplemented from MatrixBase.

int nrow (  )  const [inline]

Reimplemented from MatrixBase.

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

Reimplemented in VectorView_, and Vector_.

operator const Matrix_ (  )  const [inline]

operator const MatrixView_ (  )  const [inline]

operator const Vector_ (  )  const [inline]

Reimplemented in TmpVectorViewT.

operator const VectorView_ (  )  const [inline]

operator Matrix_ (  )  [inline]

operator MatrixView_ (  )  [inline]

operator Vector_ (  )  [inline]

Reimplemented in TmpVectorViewT.

operator VectorView_ (  )  [inline]

VectorView_<ELT> operator() ( int  i,
int  m 
) [inline]

Reimplemented from MatrixBase.

VectorView_<ELT> operator() ( int  i,
int  m 
) const [inline]

Reimplemented from MatrixBase.

ELT& operator() ( int  i  )  [inline]

Reimplemented from MatrixBase.

const ELT& operator() ( int  i  )  const [inline]

Reimplemented from MatrixBase.

const VectorBase& operator+ (  )  const [inline]

Reimplemented from MatrixBase.

VectorBase& operator+= ( const VectorBase< EE > &  b  )  [inline]

Reimplemented in VectorView_, and Vector_.

VectorBase& operator+= ( const VectorBase< ELT > &  r  )  [inline]

TNeg& operator- (  )  [inline]

Reimplemented from MatrixBase.

const TNeg& operator- (  )  const [inline]

Reimplemented from MatrixBase.

VectorBase& operator-= ( const VectorBase< EE > &  b  )  [inline]

Reimplemented in VectorView_, and Vector_.

VectorBase& operator-= ( const VectorBase< ELT > &  r  )  [inline]

VectorBase& operator/= ( const StdNumber &  t  )  [inline]

Reimplemented in VectorView_, and Vector_.

VectorBase& operator= ( const ELT &  t  )  [inline]

Reimplemented from MatrixBase.

Reimplemented in VectorView_, and Vector_.

VectorBase& operator= ( const VectorBase< EE > &  b  )  [inline]

Reimplemented in VectorView_, and Vector_.

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

ELT& operator[] ( int  i  )  [inline]

Reimplemented from MatrixBase.

const ELT& operator[] ( int  i  )  const [inline]

Reimplemented from MatrixBase.

THerm operator~ (  )  [inline]

Reimplemented from MatrixBase.

THerm operator~ (  )  const [inline]

Reimplemented from MatrixBase.

VectorBase& resize ( int  m  )  [inline]

VectorBase& resizeKeep ( int  m  )  [inline]

EltResult<EE>::Mul rowScale ( const VectorBase< EE > &  v  )  const [inline]

Reimplemented from MatrixBase.

void rowScale ( const VectorBase< EE > &  v,
typename EltResult< EE >::Mul &  out 
) const [inline]

VectorBase& rowScaleInPlace ( const VectorBase< EE > &  v  )  [inline]

Reimplemented from MatrixBase.

int size (  )  const [inline]

Reimplemented from MatrixBase.

ELT sum (  )  const [inline]

Reimplemented from MatrixBase.

THerm transpose (  )  const [inline]

Reimplemented from MatrixBase.

TNeg& updNegate (  )  [inline]

Reimplemented from MatrixBase.

THerm updTranspose (  )  [inline]

Reimplemented from MatrixBase.


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 01:34:35 2008 for SimTKcommon by  doxygen 1.4.7