Simbody
Public Member Functions

SimTK::DeadMatrixView_< ELT > Class Template Reference

This is a MatrixView_ with the additional property that we are about to delete it. More...

#include <BigMatrix.h>

Inheritance diagram for SimTK::DeadMatrixView_< ELT >:

List of all members.

Public Member Functions

 DeadMatrixView_ (MatrixHelperRep< S > *hrep)
 DeadMatrixView_ (const Base &m)
DeadMatrixView_operator= (const Base &m)
 DeadMatrixView_ (const MatrixHelper< S > &h)
 DeadMatrixView_ (MatrixHelper< S > &h)
DeadMatrixView_operator= (const Matrix_< ELT > &v)
DeadMatrixView_operator= (const ELT &e)
 Matrix assignment to an element sets only the *diagonal* elements to the indicated value; everything else is set to zero.
template<class EE >
DeadMatrixView_operator= (const MatrixBase< EE > &m)
template<class EE >
DeadMatrixView_operator+= (const MatrixBase< EE > &m)
template<class EE >
DeadMatrixView_operator-= (const MatrixBase< EE > &m)
DeadMatrixView_operator*= (const StdNumber &t)
DeadMatrixView_operator/= (const StdNumber &t)
DeadMatrixView_operator+= (const ELT &r)
DeadMatrixView_operator-= (const ELT &r)

Detailed Description

template<class ELT>
class SimTK::DeadMatrixView_< ELT >

This is a MatrixView_ with the additional property that we are about to delete it.

If this is the source for an assignment or copy construction, the destination is free to steal the helper and/or the underlying data.


Constructor & Destructor Documentation

template<class ELT>
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ ( MatrixHelperRep< S > *  hrep) [inline, explicit]
template<class ELT>
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ ( const Base m) [inline]
template<class ELT>
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ ( const MatrixHelper< S > &  h) [inline]
template<class ELT>
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ ( MatrixHelper< S > &  h) [inline]

Member Function Documentation

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= ( const Base m) [inline]
template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= ( const Matrix_< ELT > &  v) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= ( const ELT &  t) [inline]

Matrix assignment to an element sets only the *diagonal* elements to the indicated value; everything else is set to zero.

This is particularly useful for setting a Matrix to zero or to the identity; for other values it creates a Matrix which acts like the scalar. That is, if the scalar is s and we do M=s, then multiplying another Matrix B by the resulting diagonal matrix M gives the same result as multiplying B by s. That is (M=s)*B == s*B.

NOTE: this must be overridden for Vector and RowVector since then scalar assignment is defined to copy the scalar to every element.

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
template<class EE >
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= ( const MatrixBase< EE > &  m) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
template<class EE >
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator+= ( const MatrixBase< EE > &  m) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
template<class EE >
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator-= ( const MatrixBase< EE > &  m) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator*= ( const StdNumber t) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator/= ( const StdNumber t) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator+= ( const ELT &  r) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.

template<class ELT>
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator-= ( const ELT &  r) [inline]

Reimplemented from SimTK::MatrixView_< ELT >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines