Simbody  3.6
SimTK::MatrixView_< ELT > Class Template Reference

(Advanced) This class is identical to Matrix_ except that it has shallow (reference) copy and assignment semantics. More...

Public Member Functions

 MatrixView_ (MatrixHelperRep< S > *hrep)
 
 MatrixView_ (const MatrixView_ &m)
 
MatrixView_operator= (const MatrixView_ &m)
 
 MatrixView_ (const MatrixHelper< S > &h)
 
 MatrixView_ (MatrixHelper< S > &h)
 
MatrixView_operator= (const Matrix_< ELT > &v)
 
MatrixView_operator= (const ELT &e)
 
template<class EE >
MatrixView_operator= (const MatrixBase< EE > &m)
 
template<class EE >
MatrixView_operator+= (const MatrixBase< EE > &m)
 
template<class EE >
MatrixView_operator-= (const MatrixBase< EE > &m)
 
MatrixView_operator*= (const StdNumber &t)
 
MatrixView_operator/= (const StdNumber &t)
 
MatrixView_operator+= (const ELT &r)
 
MatrixView_operator-= (const ELT &r)
 
 operator const Matrix_< ELT > & () const
 
 operator Matrix_< ELT > & ()
 

Related Functions

(Note that these are not member functions.)

Matrix_<T> serialization and I/O

These methods are at namespace scope but are logically part of the Vector classes.

These deal with reading and writing Vectors from and to streams, which places an additional requirement on the element type T: the element must support the same operation you are trying to do on the Vector as a whole.

template<class E >
void writeUnformatted (std::ostream &o, const MatrixView_< E > &v)
 Raw serialization of MatrixView_<E>; same as MatrixBase<E>. More...
 
template<class E >
bool readUnformatted (std::istream &in, MatrixView_< E > &v)
 Read fixed-size MatrixView in row order from unformatted (whitespace- separated) input stream. More...
 

Detailed Description

template<class ELT>
class SimTK::MatrixView_< ELT >

(Advanced) This class is identical to Matrix_ except that it has shallow (reference) copy and assignment semantics.

Despite the name, this may be an owner if a Matrix_ is recast to a MatrixView_. However, there are no owner constructors for MatrixView_.

See also
Matrix_, MatrixBase, VectorView_

Constructor & Destructor Documentation

◆ MatrixView_() [1/4]

template<class ELT >
SimTK::MatrixView_< ELT >::MatrixView_ ( MatrixHelperRep< S > *  hrep)
inlineexplicit

◆ MatrixView_() [2/4]

template<class ELT >
SimTK::MatrixView_< ELT >::MatrixView_ ( const MatrixView_< ELT > &  m)
inline

◆ MatrixView_() [3/4]

template<class ELT >
SimTK::MatrixView_< ELT >::MatrixView_ ( const MatrixHelper< S > &  h)
inline

◆ MatrixView_() [4/4]

template<class ELT >
SimTK::MatrixView_< ELT >::MatrixView_ ( MatrixHelper< S > &  h)
inline

Member Function Documentation

◆ operator=() [1/4]

template<class ELT >
MatrixView_& SimTK::MatrixView_< ELT >::operator= ( const MatrixView_< ELT > &  m)
inline

◆ operator=() [2/4]

template<class ELT >
MatrixView_& SimTK::MatrixView_< ELT >::operator= ( const Matrix_< ELT > &  v)
inline

◆ operator=() [3/4]

template<class ELT >
MatrixView_& SimTK::MatrixView_< ELT >::operator= ( const ELT &  e)
inline

◆ operator=() [4/4]

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

◆ operator+=() [1/2]

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

◆ operator-=() [1/2]

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

◆ operator*=()

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

◆ operator/=()

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

◆ operator+=() [2/2]

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

◆ operator-=() [2/2]

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

◆ operator const Matrix_< ELT > &()

template<class ELT >
SimTK::MatrixView_< ELT >::operator const Matrix_< ELT > & ( ) const
inline

◆ operator Matrix_< ELT > &()

template<class ELT >
SimTK::MatrixView_< ELT >::operator Matrix_< ELT > & ( )
inline

Friends And Related Function Documentation

◆ writeUnformatted()

template<class E >
void writeUnformatted ( std::ostream &  o,
const MatrixView_< E > &  v 
)
related

Raw serialization of MatrixView_<E>; same as MatrixBase<E>.

◆ readUnformatted()

template<class E >
bool readUnformatted ( std::istream &  in,
MatrixView_< E > &  v 
)
related

Read fixed-size MatrixView in row order from unformatted (whitespace- separated) input stream.

Newlines in the input have no special meaning – we'll read them as whitespace. It is an error if there aren't enough elements.


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