|
RowVectorBase & | operator= (const RowVectorBase &b) |
| Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match. More...
|
|
RowVectorBase & | operator*= (const StdNumber &t) |
|
RowVectorBase & | operator/= (const StdNumber &t) |
|
RowVectorBase & | operator+= (const RowVectorBase &r) |
|
RowVectorBase & | operator-= (const RowVectorBase &r) |
|
template<class EE > |
RowVectorBase & | operator= (const RowVectorBase< EE > &b) |
|
template<class EE > |
RowVectorBase & | operator+= (const RowVectorBase< EE > &b) |
|
template<class EE > |
RowVectorBase & | operator-= (const RowVectorBase< EE > &b) |
|
RowVectorBase & | operator= (const ELT &t) |
| Fill current allocation with copies of element. More...
|
|
template<class EE > |
RowVectorBase & | colScaleInPlace (const VectorBase< EE > &v) |
| There's only one row here so it's a bit weird to use colScale rather than elementwiseMultiply, but there's nothing really wrong with it. More...
|
|
template<class EE > |
void | colScale (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const |
|
template<class EE > |
EltResult< EE >::Mul | colScale (const VectorBase< EE > &v) const |
|
template<class EE > |
RowVectorBase & | elementwiseMultiplyInPlace (const RowVectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseMultiply (const RowVectorBase< EE > &v, typename EltResult< EE >::Mul &out) const |
|
template<class EE > |
EltResult< EE >::Mul | elementwiseMultiply (const RowVectorBase< EE > &v) const |
|
template<class EE > |
RowVectorBase & | elementwiseMultiplyFromLeftInPlace (const RowVectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseMultiplyFromLeft (const RowVectorBase< EE > &v, typename RowVectorBase< EE >::template EltResult< ELT >::Mul &out) const |
|
template<class EE > |
RowVectorBase< EE >::template EltResult< ELT >::Mul | elementwiseMultiplyFromLeft (const RowVectorBase< EE > &v) const |
|
template<class EE > |
RowVectorBase & | elementwiseDivideInPlace (const RowVectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseDivide (const RowVectorBase< EE > &v, typename EltResult< EE >::Dvd &out) const |
|
template<class EE > |
EltResult< EE >::Dvd | elementwiseDivide (const RowVectorBase< EE > &v) const |
|
template<class EE > |
RowVectorBase & | elementwiseDivideFromLeftInPlace (const RowVectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseDivideFromLeft (const RowVectorBase< EE > &v, typename RowVectorBase< EE >::template EltResult< ELT >::Dvd &out) const |
|
template<class EE > |
RowVectorBase< EE >::template EltResult< ELT >::Dvd | elementwiseDivideFromLeft (const RowVectorBase< EE > &v) const |
|
| operator const RowVector_< ELT > & () const |
|
| operator RowVector_< ELT > & () |
|
| operator const RowVectorView_< ELT > & () const |
|
| operator RowVectorView_< ELT > & () |
|
| operator const Matrix_< ELT > & () const |
|
| operator Matrix_< ELT > & () |
|
| operator const MatrixView_< ELT > & () const |
|
| operator MatrixView_< ELT > & () |
|
int | size () const |
|
int | nrow () const |
|
int | ncol () const |
|
ptrdiff_t | nelt () const |
|
TAbs | abs () const |
|
const ELT & | operator[] (int j) const |
|
ELT & | operator[] (int j) |
|
const ELT & | operator() (int j) const |
|
ELT & | operator() (int j) |
|
RowVectorView_< ELT > | operator() (int j, int n) const |
|
RowVectorView_< ELT > | operator() (int j, int n) |
|
RowVectorView_< ELT > | index (const Array_< int > &indices) const |
|
RowVectorView_< ELT > | updIndex (const Array_< int > &indices) |
|
RowVectorView_< ELT > | operator() (const Array_< int > &indices) const |
|
RowVectorView_< ELT > | operator() (const Array_< int > &indices) |
|
THerm | transpose () const |
|
THerm | updTranspose () |
|
THerm | operator~ () const |
|
THerm | operator~ () |
|
const RowVectorBase & | operator+ () const |
|
const TNeg & | negate () const |
|
TNeg & | updNegate () |
|
const TNeg & | operator- () const |
|
TNeg & | operator- () |
|
RowVectorBase & | resize (int n) |
|
RowVectorBase & | resizeKeep (int n) |
|
void | clear () |
|
ELT | sum () const |
|
VectorIterator< ELT, RowVectorBase< ELT > > | begin () |
|
VectorIterator< ELT, RowVectorBase< ELT > > | end () |
|
|
These constructors create new RowVectorBase objects which own their own data and are (at least by default) resizable.
The resulting matrices are 1 x n with the number of rows locked at 1. If there is any data allocated but not explicitly initialized, that data will be uninitialized garbage in Release builds but will be initialized to NaN (at a performance cost) in Debug builds.
|
| RowVectorBase (int n=0) |
| Default constructor makes a 1x0 matrix locked at 1 row; you can provide an initial allocation if you want. More...
|
|
| RowVectorBase (const RowVectorBase &source) |
| Copy constructor is a deep copy (not appropriate for views!). More...
|
|
| RowVectorBase (const TNeg &source) |
| Implicit conversion from compatible row vector with negated elements. More...
|
|
| RowVectorBase (int n, const ELT &initialValue) |
| Construct an owner row vector of length n, with each element initialized to the given value. More...
|
|
| RowVectorBase (int n, const ELT *cppInitialValues) |
| Construct an owner vector of length n, with the elements initialized sequentially from a C++ array of elements which is assumed to be of length n. More...
|
|
|
Construct a non-resizeable, RowVectorBase view of externally supplied data.
Note that stride should be interpreted as "the number of scalars between elements" and for composite elements may have a different value if the source is a C++ array of elements vs. a Simmatrix packed data array. We provide constructors for both read-only and writable external data.
|
| RowVectorBase (int n, int stride, const Scalar *s) |
| Construct a read-only view of existing data. More...
|
|
| RowVectorBase (int n, int stride, Scalar *s) |
| Construct a writable view into existing data. More...
|
|
|
Create a new RowVectorBase from an existing helper.
Both shallow (view) and deep copies are possible. For shallow copies, there is a constructor providing a read-only view of the original data and one providing a writable view into the original data.
|
| RowVectorBase (MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s) |
| Construct a writable view into the source data. More...
|
|
| RowVectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s) |
| Construct a read-only view of the source data. More...
|
|
| RowVectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::DeepCopy &d) |
| Construct a new owner vector initialized with the data from the source. More...
|
|
template<class ELT>
class SimTK::RowVectorBase< ELT >
This is a dataless rehash of the MatrixBase class to specialize it for RowVectors.
This mostly entails overriding a few of the methods. Note that all the MatrixBase operations remain available if you static_cast
this up to a MatrixBase.