Simbody
|
This is a MatrixView_ with the additional property that we are about to delete it. More...
#include <BigMatrix.h>
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) |
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.
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ | ( | MatrixHelperRep< S > * | hrep | ) | [inline, explicit] |
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ | ( | const Base & | m | ) | [inline] |
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ | ( | const MatrixHelper< S > & | h | ) | [inline] |
SimTK::DeadMatrixView_< ELT >::DeadMatrixView_ | ( | MatrixHelper< S > & | h | ) | [inline] |
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= | ( | const Base & | m | ) | [inline] |
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= | ( | const Matrix_< ELT > & | v | ) | [inline] |
Reimplemented from SimTK::MatrixView_< 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 >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator= | ( | const MatrixBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator+= | ( | const MatrixBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator-= | ( | const MatrixBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator*= | ( | const StdNumber & | t | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator/= | ( | const StdNumber & | t | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator+= | ( | const ELT & | r | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.
DeadMatrixView_& SimTK::DeadMatrixView_< ELT >::operator-= | ( | const ELT & | r | ) | [inline] |
Reimplemented from SimTK::MatrixView_< ELT >.