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 DeadMatrixView_< ELT >:
MatrixView_< ELT > MatrixBase< 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

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

Member Function Documentation

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

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator*=().

DeadMatrixView_& operator+= ( const ELT &  r  )  [inline]

Reimplemented from MatrixView_< ELT >.

References MatrixBase< ELT >::updDiag().

DeadMatrixView_& operator+= ( const MatrixBase< EE > &  m  )  [inline]

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator+=().

DeadMatrixView_& operator-= ( const ELT &  r  )  [inline]

Reimplemented from MatrixView_< ELT >.

References MatrixBase< ELT >::updDiag().

DeadMatrixView_& operator-= ( const MatrixBase< EE > &  m  )  [inline]

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator-=().

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

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator/=().

DeadMatrixView_& operator= ( const MatrixBase< EE > &  m  )  [inline]

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator=().

DeadMatrixView_& 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 MatrixView_< ELT >.

References MatrixView_< ELT >::operator=().

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

Reimplemented from MatrixView_< ELT >.

References MatrixView_< ELT >::operator=().

DeadMatrixView_& operator= ( const Base m  )  [inline]

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

Generated on Thu Aug 12 16:38:14 2010 for SimTKcore by  doxygen 1.6.1