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_< ELT > & () const
 operator Vector_< ELT > & ()
 operator const VectorView_< ELT > & () const
 operator VectorView_< ELT > & ()
 operator const Matrix_< ELT > & () const
 operator Matrix_< ELT > & ()
 operator const MatrixView_< ELT > & () const
 operator MatrixView_< ELT > & ()
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)
void clear ()
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

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

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

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

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

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

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

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

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

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

Reimplemented from MatrixBase.

Reimplemented in VectorView_, Vector_, Vector_< Real >, and Vector_< SimTK::Vec< N > >.

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

Reimplemented from MatrixBase.

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

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

Reimplemented from MatrixBase.

VectorBase& elementwiseInvertInPlace (  )  [inline]

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

Reimplemented from MatrixBase.

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

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

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

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

Reimplemented from MatrixBase.

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

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

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

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

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

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

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

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

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

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

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

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

operator const Vector_< ELT > & (  )  const [inline]

Reimplemented in TmpVectorViewT.

operator Vector_< ELT > & (  )  [inline]

Reimplemented in TmpVectorViewT.

operator const VectorView_< ELT > & (  )  const [inline]

operator VectorView_< ELT > & (  )  [inline]

operator const Matrix_< ELT > & (  )  const [inline]

operator Matrix_< ELT > & (  )  [inline]

operator const MatrixView_< ELT > & (  )  const [inline]

operator MatrixView_< ELT > & (  )  [inline]

int size (  )  const [inline]

int nrow (  )  const [inline]

int ncol (  )  const [inline]

Reimplemented from MatrixBase.

TAbs abs (  )  const [inline]

Reimplemented from MatrixBase.

Referenced by SimTK::abs().

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

Reimplemented from MatrixBase.

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

Reimplemented from MatrixBase.

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

Reimplemented from MatrixBase.

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

Reimplemented from MatrixBase.

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

Reimplemented from MatrixBase.

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

Reimplemented from MatrixBase.

THerm transpose (  )  const [inline]

Reimplemented from MatrixBase.

Referenced by VectorBase< SimTK::Vec< N > >::operator~().

THerm updTranspose (  )  [inline]

Reimplemented from MatrixBase.

Referenced by VectorBase< SimTK::Vec< N > >::operator~().

THerm operator~ (  )  const [inline]

Reimplemented from MatrixBase.

THerm operator~ (  )  [inline]

Reimplemented from MatrixBase.

const VectorBase& operator+ (  )  const [inline]

Reimplemented from MatrixBase.

const TNeg& negate (  )  const [inline]

Reimplemented from MatrixBase.

Referenced by VectorBase< SimTK::Vec< N > >::operator-().

TNeg& updNegate (  )  [inline]

Reimplemented from MatrixBase.

Referenced by VectorBase< SimTK::Vec< N > >::operator-().

const TNeg& operator- (  )  const [inline]

Reimplemented from MatrixBase.

TNeg& operator- (  )  [inline]

Reimplemented from MatrixBase.

VectorBase& resize ( int  m  )  [inline]

VectorBase& resizeKeep ( int  m  )  [inline]

void clear (  )  [inline]

Reimplemented from MatrixBase.

ELT sum (  )  const [inline]

Reimplemented from MatrixBase.

Referenced by SimTK::sum().

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

Referenced by SimTK::median(), and SimTK::sort().

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

Referenced by SimTK::median(), and SimTK::sort().


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

Generated on Fri Sep 26 07:44:28 2008 for SimTKcore by  doxygen 1.5.6