1 #ifndef SimTK_SIMMATRIX_VECTORVIEW_H_
2 #define SimTK_SIMMATRIX_VECTORVIEW_H_
42 template <
class ELT>
class VectorView_ :
public VectorBase<ELT> {
43 typedef VectorBase<ELT> Base;
44 typedef typename CNT<ELT>::Scalar S;
45 typedef typename CNT<ELT>::Number Number;
46 typedef typename CNT<ELT>::StdNumber StdNumber;
47 typedef VectorView_<ELT> T;
48 typedef VectorView_< typename CNT<ELT>::TNeg > TNeg;
49 typedef RowVectorView_< typename CNT<ELT>::THerm > THerm;
95 #endif // SimTK_SIMMATRIX_VECTORVIEW_H_
Here we define class MatrixHelper, the scalar-type templatized helper class for the more general...
Definition: MatrixHelper.h:79
VectorView_ & operator-=(const VectorBase< EE > &m)
Definition: VectorView_.h:80
VectorBase & operator*=(const StdNumber &t)
Definition: VectorBase.h:145
const MatrixHelper< Scalar > & getHelper() const
Definition: MatrixBase.h:865
VectorView_ & operator-=(const ELT &b)
Definition: VectorView_.h:86
VectorView_ & operator/=(const StdNumber &t)
Definition: VectorView_.h:84
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
VectorView_(MatrixHelperRep< S > *hrep)
Definition: VectorView_.h:55
VectorView_ & operator=(const ELT &v)
Definition: VectorView_.h:74
This is a dataless rehash of the MatrixBase class to specialize it for Vectors.
Definition: BigMatrix.h:164
VectorView_ & operator*=(const StdNumber &t)
Definition: VectorView_.h:83
VectorBase & operator=(const VectorBase &b)
Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match...
Definition: VectorBase.h:138
VectorView_ & operator=(const Base &b)
Definition: VectorView_.h:72
VectorView_ & operator+=(const VectorBase< EE > &m)
Definition: VectorView_.h:78
MatrixBase & elementwiseSubtractScalarInPlace(const S &s)
Set M(i,j)-=s for every element of M and some value s.
VectorBase & operator/=(const StdNumber &t)
Definition: VectorBase.h:146
VectorView_(const MatrixHelper< S > &h)
Definition: VectorView_.h:69
VectorBase & operator-=(const VectorBase &r)
Definition: VectorBase.h:148
MatrixBase & elementwiseAddScalarInPlace(const S &s)
Set M(i,j)+=s for every element of M and some value s.
VectorView_ & operator=(const VectorBase< EE > &m)
Definition: VectorView_.h:76
VectorView_ & operator+=(const ELT &b)
Definition: VectorView_.h:85
VectorView_(const VectorView_ &v)
Definition: VectorView_.h:60
(Advanced) This class is identical to Vector_ except that it has shallow (reference) copy and assignm...
Definition: BigMatrix.h:170
Definition: MatrixHelper.h:48
VectorBase & operator+=(const VectorBase &r)
Definition: VectorBase.h:147
VectorView_(MatrixHelper< S > &h)
Definition: VectorView_.h:70
VectorView_ & operator=(const VectorView_ &v)
Definition: VectorView_.h:64