Simbody
3.5
|
(Advanced) This class is identical to RowVector_ except that it has shallow (reference) copy and assignment semantics. More...
Public Member Functions | |
RowVectorView_ (MatrixHelperRep< S > *hrep) | |
RowVectorView_ (const RowVectorView_ &r) | |
RowVectorView_ & | operator= (const RowVectorView_ &r) |
RowVectorView_ (const MatrixHelper< S > &h) | |
RowVectorView_ (MatrixHelper< S > &h) | |
RowVectorView_ & | operator= (const Base &b) |
RowVectorView_ & | operator= (const ELT &v) |
Fill current allocation with copies of element. | |
template<class EE > | |
RowVectorView_ & | operator= (const RowVectorBase< EE > &m) |
template<class EE > | |
RowVectorView_ & | operator+= (const RowVectorBase< EE > &m) |
template<class EE > | |
RowVectorView_ & | operator-= (const RowVectorBase< EE > &m) |
RowVectorView_ & | operator*= (const StdNumber &t) |
RowVectorView_ & | operator/= (const StdNumber &t) |
RowVectorView_ & | operator+= (const ELT &b) |
RowVectorView_ & | operator-= (const ELT &b) |
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 RowVectorView_< E > &v) |
Raw serialization of RowVectorView_<E>; same as VectorView_<E>. | |
template<class E > | |
bool | readUnformatted (std::istream &in, RowVectorView_< E > &v) |
Read fixed-size RowVectorView from input stream. |
(Advanced) This class is identical to RowVector_ except that it has shallow (reference) copy and assignment semantics.
Despite the name, this may be an owner if a RowVector_ is recast to a RowVectorView_. However, there are no owner constructors for RowVectorView_.
SimTK::RowVectorView_< ELT >::RowVectorView_ | ( | MatrixHelperRep< S > * | hrep | ) | [inline, explicit] |
SimTK::RowVectorView_< ELT >::RowVectorView_ | ( | const RowVectorView_< ELT > & | r | ) | [inline] |
SimTK::RowVectorView_< ELT >::RowVectorView_ | ( | const MatrixHelper< S > & | h | ) | [inline, explicit] |
SimTK::RowVectorView_< ELT >::RowVectorView_ | ( | MatrixHelper< S > & | h | ) | [inline, explicit] |
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= | ( | const RowVectorView_< ELT > & | r | ) | [inline] |
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= | ( | const Base & | b | ) | [inline] |
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= | ( | const ELT & | t | ) | [inline] |
Fill current allocation with copies of element.
Note that this is not the same behavior as assignment for Matrices, where only the diagonal is set (and everything else is set to zero.)
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator= | ( | const RowVectorBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator+= | ( | const RowVectorBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator-= | ( | const RowVectorBase< EE > & | m | ) | [inline] |
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator*= | ( | const StdNumber & | t | ) | [inline] |
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator/= | ( | const StdNumber & | t | ) | [inline] |
Reimplemented from SimTK::RowVectorBase< ELT >.
RowVectorView_& SimTK::RowVectorView_< ELT >::operator+= | ( | const ELT & | b | ) | [inline] |
RowVectorView_& SimTK::RowVectorView_< ELT >::operator-= | ( | const ELT & | b | ) | [inline] |
void writeUnformatted | ( | std::ostream & | o, |
const RowVectorView_< E > & | v | ||
) | [related] |
Raw serialization of RowVectorView_<E>; same as VectorView_<E>.
bool readUnformatted | ( | std::istream & | in, |
RowVectorView_< E > & | v | ||
) | [related] |
Read fixed-size RowVectorView from input stream.
It is an error if there aren't enough elements.