|
VectorBase & | operator= (const VectorBase &b) |
| Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match. More...
|
|
VectorBase & | operator*= (const StdNumber &t) |
|
VectorBase & | operator/= (const StdNumber &t) |
|
VectorBase & | operator+= (const VectorBase &r) |
|
VectorBase & | operator-= (const VectorBase &r) |
|
template<class EE > |
VectorBase & | operator= (const VectorBase< EE > &b) |
|
template<class EE > |
VectorBase & | operator+= (const VectorBase< EE > &b) |
|
template<class EE > |
VectorBase & | operator-= (const VectorBase< EE > &b) |
|
VectorBase & | operator= (const ELT &t) |
| Fill current allocation with copies of element. More...
|
|
template<class EE > |
VectorBase & | rowScaleInPlace (const VectorBase< EE > &v) |
| There's only one column here so it's a bit weird to use rowScale rather than elementwiseMultiply, but there's nothing really wrong with it. More...
|
|
template<class EE > |
void | rowScale (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const |
|
template<class EE > |
EltResult< EE >::Mul | rowScale (const VectorBase< EE > &v) const |
|
CNT< ScalarNormSq >::TSqrt | normRMS (int *worstOne=0) const |
| Return the root-mean-square (RMS) norm of a Vector of scalars, with optional return of the index of the element of largest absolute value. More...
|
|
template<class EE > |
CNT< ScalarNormSq >::TSqrt | weightedNormRMS (const VectorBase< EE > &w, int *worstOne=0) const |
| Return the weighted root-mean-square (WRMS) norm of a Vector of scalars, with optional return of the index of the weighted element of largest absolute value. More...
|
|
EAbs | normInf (int *worstOne=0) const |
| Return the infinity norm (max absolute value) of a Vector of scalars, with optional return of the index of the element of largest absolute value. More...
|
|
template<class EE > |
EAbs | weightedNormInf (const VectorBase< EE > &w, int *worstOne=0) const |
| Return the weighted infinity norm (max absolute value) WInf of a Vector of scalars, with optional return of the index of the weighted element of largest absolute value. More...
|
|
VectorBase & | elementwiseInvertInPlace () |
| Set this[i] = this[i]^-1. More...
|
|
void | elementwiseInvert (VectorBase< typename CNT< ELT >::TInvert > &out) const |
| Set supplied out[i] = this[i]^-1. More...
|
|
VectorBase< typename CNT< ELT >::TInvert > | elementwiseInvert () const |
| Return out[i]=this[i]^-1 as function return. More...
|
|
template<class EE > |
VectorBase & | elementwiseMultiplyInPlace (const VectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseMultiply (const VectorBase< EE > &v, typename EltResult< EE >::Mul &out) const |
|
template<class EE > |
EltResult< EE >::Mul | elementwiseMultiply (const VectorBase< EE > &v) const |
|
template<class EE > |
VectorBase & | elementwiseMultiplyFromLeftInPlace (const VectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseMultiplyFromLeft (const VectorBase< EE > &v, typename VectorBase< EE >::template EltResult< ELT >::Mul &out) const |
|
template<class EE > |
VectorBase< EE >::template EltResult< ELT >::Mul | elementwiseMultiplyFromLeft (const VectorBase< EE > &v) const |
|
template<class EE > |
VectorBase & | elementwiseDivideInPlace (const VectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseDivide (const VectorBase< EE > &v, typename EltResult< EE >::Dvd &out) const |
|
template<class EE > |
EltResult< EE >::Dvd | elementwiseDivide (const VectorBase< EE > &v) const |
|
template<class EE > |
VectorBase & | elementwiseDivideFromLeftInPlace (const VectorBase< EE > &r) |
|
template<class EE > |
void | elementwiseDivideFromLeft (const VectorBase< EE > &v, typename VectorBase< EE >::template EltResult< ELT >::Dvd &out) const |
|
template<class EE > |
VectorBase< EE >::template EltResult< ELT >::Dvd | elementwiseDivideFromLeft (const VectorBase< EE > &v) const |
|
| operator const Vector_< ELT > & () const |
|
| operator Vector_< ELT > & () |
|
| operator const VectorView_< ELT > & () const |
|
| operator VectorView_< 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 i) const |
|
ELT & | operator[] (int i) |
|
const ELT & | operator() (int i) const |
|
ELT & | operator() (int i) |
|
VectorView_< ELT > | operator() (int i, int m) const |
|
VectorView_< ELT > | operator() (int i, int m) |
|
VectorView_< ELT > | index (const Array_< int > &indices) const |
|
VectorView_< ELT > | updIndex (const Array_< int > &indices) |
|
VectorView_< ELT > | operator() (const Array_< int > &indices) const |
|
VectorView_< ELT > | operator() (const Array_< int > &indices) |
|
THerm | transpose () const |
|
THerm | updTranspose () |
|
THerm | operator~ () const |
|
THerm | operator~ () |
|
const VectorBase & | operator+ () const |
|
const TNeg & | negate () const |
|
TNeg & | updNegate () |
|
const TNeg & | operator- () const |
|
TNeg & | operator- () |
|
VectorBase & | resize (int m) |
|
VectorBase & | resizeKeep (int m) |
|
void | clear () |
|
ELT | sum () const |
|
VectorIterator< ELT, VectorBase< ELT > > | begin () |
|
VectorIterator< ELT, VectorBase< ELT > > | end () |
|
|
These constructors create new VectorBase objects which own their own data and are (at least by default) resizable.
The resulting matrices are m X 1 with the number of columns 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.
|
| VectorBase (int m=0) |
| Default constructor makes a 0x1 matrix locked at 1 column; you can provide an initial allocation if you want. More...
|
|
| VectorBase (const VectorBase &source) |
| Copy constructor is a deep copy (not appropriate for views!). More...
|
|
| VectorBase (const TNeg &source) |
| Implicit conversion from compatible vector with negated elements. More...
|
|
| VectorBase (int m, const ELT &initialValue) |
| Construct an owner vector of length m, with each element initialized to the given value. More...
|
|
| VectorBase (int m, const ELT *cppInitialValues) |
| Construct an owner vector of length m, with the elements initialized sequentially from a C++ array of elements which is assumed to be of length m. More...
|
|
|
Construct a non-resizeable, VectorBase 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.
|
| VectorBase (int m, int stride, const Scalar *s) |
| Construct a read-only view of existing data. More...
|
|
| VectorBase (int m, int stride, Scalar *s) |
| Construct a writable view into existing data. More...
|
|
|
Create a new VectorBase 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.
|
| VectorBase (MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s) |
| Construct a writable view into the source data. More...
|
|
| VectorBase (const MatrixHelper< Scalar > &h, const typename MatrixHelper< Scalar >::ShallowCopy &s) |
| Construct a read-only view of the source data. More...
|
|
| VectorBase (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::VectorBase< ELT >
This is a dataless rehash of the MatrixBase class to specialize it for Vectors.
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.