RowVectorBase Class Template Reference

#include <BigMatrix.h>

Inheritance diagram for RowVectorBase:

MatrixBase RowVector_ RowVectorView_ TmpRowVectorView_

List of all members.


Detailed Description

template<class ELT>
class SimTK::RowVectorBase< ELT >

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

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

 RowVectorBase ()
 RowVectorBase (const RowVectorBase &b)
RowVectorBaseoperator= (const RowVectorBase &b)
 RowVectorBase (int n, bool lockNcol=false)
 RowVectorBase (int n, int leadingDim, const Scalar *s)
 RowVectorBase (int n, int leadingDim, Scalar *s)
 RowVectorBase (int n, const ELT &t)
 RowVectorBase (int n, bool lockNcol, const ELT &t)
 RowVectorBase (int n, const ELT *p)
 RowVectorBase (int n, bool lockNcol, const ELT *p)
 RowVectorBase (MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s)
 RowVectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s)
 RowVectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::DeepCopy &d)
RowVectorBaseoperator*= (const StdNumber &t)
RowVectorBaseoperator/= (const StdNumber &t)
RowVectorBaseoperator+= (const RowVectorBase &r)
RowVectorBaseoperator-= (const RowVectorBase &r)
template<class EE>
RowVectorBaseoperator= (const RowVectorBase< EE > &b)
template<class EE>
RowVectorBaseoperator+= (const RowVectorBase< EE > &b)
template<class EE>
RowVectorBaseoperator-= (const RowVectorBase< EE > &b)
RowVectorBaseoperator= (const ELT &t)
template<class EE>
RowVectorBasecolScaleInPlace (const VectorBase< EE > &v)
template<class EE>
void colScale (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const
template<class EE>
EltResult< EE >::Mul colScale (const VectorBase< EE > &v) const
template<class EE>
RowVectorBaseelementwiseMultiplyInPlace (const RowVectorBase< EE > &r)
template<class EE>
void elementwiseMultiply (const RowVectorBase< EE > &v, typename EltResult< EE >::Mul &out) const
template<class EE>
EltResult< EE >::Mul elementwiseMultiply (const RowVectorBase< EE > &v) const
template<class EE>
RowVectorBaseelementwiseMultiplyFromLeftInPlace (const RowVectorBase< EE > &r)
template<class EE>
void elementwiseMultiplyFromLeft (const RowVectorBase< EE > &v, typename RowVectorBase< EE >::template EltResult< ELT >::Mul &out) const
template<class EE>
RowVectorBase< EE >::template
EltResult< ELT >::Mul 
elementwiseMultiplyFromLeft (const RowVectorBase< EE > &v) const
template<class EE>
RowVectorBaseelementwiseDivideInPlace (const RowVectorBase< EE > &r)
template<class EE>
void elementwiseDivide (const RowVectorBase< EE > &v, typename EltResult< EE >::Dvd &out) const
template<class EE>
EltResult< EE >::Dvd elementwiseDivide (const RowVectorBase< EE > &v) const
template<class EE>
RowVectorBaseelementwiseDivideFromLeftInPlace (const RowVectorBase< EE > &r)
template<class EE>
void elementwiseDivideFromLeft (const RowVectorBase< EE > &v, typename RowVectorBase< EE >::template EltResult< ELT >::Dvd &out) const
template<class EE>
RowVectorBase< EE >::template
EltResult< ELT >::Dvd 
elementwiseDivideFromLeft (const RowVectorBase< EE > &v) const
 operator const RowVector_< ELT > & () const
 operator RowVector_< ELT > & ()
 operator const RowVectorView_< ELT > & () const
 operator RowVectorView_< 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 j) const
ELT & operator[] (int j)
const ELT & operator() (int j) const
ELT & operator() (int j)
RowVectorView_< ELT > operator() (int j, int n) const
RowVectorView_< ELT > operator() (int j, int n)
THerm transpose () const
THerm updTranspose ()
THerm operator~ () const
THerm operator~ ()
const RowVectorBaseoperator+ () const
const TNegnegate () const
TNegupdNegate ()
const TNegoperator- () const
TNegoperator- ()
RowVectorBaseresize (int n)
RowVectorBaseresizeKeep (int n)
void clear ()
ELT sum () const
VectorIterator< ELT,
RowVectorBase< ELT > > 
begin ()
VectorIterator< ELT,
RowVectorBase< ELT > > 
end ()

Classes

struct  EltResult


Constructor & Destructor Documentation

RowVectorBase (  )  [inline]

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

RowVectorBase ( int  n,
bool  lockNcol = false 
) [inline, explicit]

RowVectorBase ( int  n,
int  leadingDim,
const Scalar *  s 
) [inline]

RowVectorBase ( int  n,
int  leadingDim,
Scalar *  s 
) [inline]

RowVectorBase ( int  n,
const ELT &  t 
) [inline]

RowVectorBase ( int  n,
bool  lockNcol,
const ELT &  t 
) [inline]

RowVectorBase ( int  n,
const ELT *  p 
) [inline]

RowVectorBase ( int  n,
bool  lockNcol,
const ELT *  p 
) [inline]

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

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

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


Member Function Documentation

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

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

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::operator*=().

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

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::operator/=().

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

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

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

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::operator=().

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

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::operator+=().

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

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::operator-=().

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

Reimplemented from MatrixBase.

Reimplemented in RowVectorView_, and RowVector_.

References MatrixBase::setTo().

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

Reimplemented from MatrixBase.

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

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

Reimplemented from MatrixBase.

References RowVectorBase::ncol().

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

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

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

References RowVectorBase::nrow().

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

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

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

References RowVectorBase::nrow().

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

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

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

References RowVectorBase::nrow().

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

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

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

References RowVectorBase::nrow().

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

Reimplemented in TmpRowVectorView_.

operator RowVector_< ELT > & (  )  [inline]

Reimplemented in TmpRowVectorView_.

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

operator RowVectorView_< 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.

References MatrixBase::ncol(), and MatrixBase::nrow().

Referenced by RowVectorBase::colScale(), and SimTK::operator*().

TAbs abs (  )  const [inline]

Reimplemented from MatrixBase.

References SimTK::abs().

Referenced by SimTK::abs().

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

Reimplemented from MatrixBase.

References MatrixBase::operator()().

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

Reimplemented from MatrixBase.

References MatrixBase::operator()().

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

Reimplemented from MatrixBase.

References MatrixBase::operator()().

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

Reimplemented from MatrixBase.

References MatrixBase::operator()().

RowVectorView_<ELT> operator() ( int  j,
int  n 
) const [inline]

Reimplemented from MatrixBase.

References MatrixBase::operator()().

RowVectorView_<ELT> operator() ( int  j,
int  n 
) [inline]

Reimplemented from MatrixBase.

References MatrixBase::operator()().

THerm transpose (  )  const [inline]

Reimplemented from MatrixBase.

References SimTK::transpose().

Referenced by RowVectorBase::operator~().

THerm updTranspose (  )  [inline]

Reimplemented from MatrixBase.

References MatrixBase::updTranspose().

Referenced by RowVectorBase::operator~().

THerm operator~ (  )  const [inline]

Reimplemented from MatrixBase.

References RowVectorBase::transpose().

THerm operator~ (  )  [inline]

Reimplemented from MatrixBase.

References RowVectorBase::updTranspose().

const RowVectorBase& operator+ (  )  const [inline]

Reimplemented from MatrixBase.

const TNeg& negate (  )  const [inline]

Reimplemented from MatrixBase.

Referenced by RowVectorBase::operator-().

TNeg& updNegate (  )  [inline]

Reimplemented from MatrixBase.

Referenced by RowVectorBase::operator-().

const TNeg& operator- (  )  const [inline]

Reimplemented from MatrixBase.

References RowVectorBase::negate().

TNeg& operator- (  )  [inline]

Reimplemented from MatrixBase.

References RowVectorBase::updNegate().

RowVectorBase& resize ( int  n  )  [inline]

References MatrixBase::resize().

RowVectorBase& resizeKeep ( int  n  )  [inline]

void clear (  )  [inline]

Reimplemented from MatrixBase.

References MatrixBase::clear(), and MatrixBase::resize().

ELT sum (  )  const [inline]

Reimplemented from MatrixBase.

References MatrixBase::helper, and MatrixHelper::sum().

Referenced by SimTK::sum().

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

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

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

References RowVectorBase::size().

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:29 2008 for SimTKcore by  doxygen 1.5.6