Vector_< ELT > Class Template Reference
This is the Vector class intended to appear in user code.
More...
#include <BigMatrix.h>
List of all members.
Public Member Functions |
| Vector_ () |
| Vector_ (const Vector_ &src) |
| Vector_ (const Base &src) |
| Vector_ (const BaseNeg &src) |
Vector_ & | operator= (const Vector_ &src) |
| Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match.
|
| Vector_ (int m) |
| Vector_ (int m, const ELT *cppInitialValues) |
| Vector_ (int m, const ELT &initialValue) |
| Vector_ (int m, const S *cppData, bool) |
| Construct a Vector which uses borrowed space with assumed element-to-element stride equal to the C++ element spacing.
|
| Vector_ (int m, S *cppData, bool) |
| Vector_ (int m, int stride, const S *data, bool) |
| Borrowed-space construction with explicit stride supplied as "number of scalars between elements".
|
| Vector_ (int m, int stride, S *data, bool) |
template<int M> |
| Vector_ (const Vec< M, ELT > &v) |
| Convert a Vec to a Vector_.
|
Vector_ & | operator= (const ELT &v) |
| Fill current allocation with copies of element.
|
template<class EE > |
Vector_ & | operator= (const VectorBase< EE > &m) |
template<class EE > |
Vector_ & | operator+= (const VectorBase< EE > &m) |
template<class EE > |
Vector_ & | operator-= (const VectorBase< EE > &m) |
Vector_ & | operator*= (const StdNumber &t) |
Vector_ & | operator/= (const StdNumber &t) |
Vector_ & | operator+= (const ELT &b) |
Vector_ & | operator-= (const ELT &b) |
Detailed Description
template<class ELT>
class SimTK::Vector_< ELT >
This is the Vector class intended to appear in user code.
It can be a fixed-size view of someone else's data, or can be a resizable data owner itself, although of course it will always have just one column.
Constructor & Destructor Documentation
Vector_ |
( |
int |
m |
) |
[inline, explicit] |
Vector_ |
( |
int |
m, |
|
|
const ELT * |
cppInitialValues | |
|
) |
| | [inline] |
Vector_ |
( |
int |
m, |
|
|
const ELT & |
initialValue | |
|
) |
| | [inline] |
Vector_ |
( |
int |
m, |
|
|
const S * |
cppData, |
|
|
bool |
| |
|
) |
| | [inline] |
Construct a Vector which uses borrowed space with assumed element-to-element stride equal to the C++ element spacing.
Last parameter is a dummy to avoid overload conflicts when ELT=S; pass it as "true".
Vector_ |
( |
int |
m, |
|
|
S * |
cppData, |
|
|
bool |
| |
|
) |
| | [inline] |
Vector_ |
( |
int |
m, |
|
|
int |
stride, |
|
|
const S * |
data, |
|
|
bool |
| |
|
) |
| | [inline] |
Borrowed-space construction with explicit stride supplied as "number of scalars between elements".
Last parameter is a dummy to avoid overload conflicts; pass it as "true".
Vector_ |
( |
int |
m, |
|
|
int |
stride, |
|
|
S * |
data, |
|
|
bool |
| |
|
) |
| | [inline] |
Vector_ |
( |
const Vec< M, ELT > & |
v |
) |
[inline, explicit] |
Member Function Documentation
Vector_& operator*= |
( |
const StdNumber & |
t |
) |
[inline] |
Vector_& operator+= |
( |
const ELT & |
b |
) |
[inline] |
Vector_& operator-= |
( |
const ELT & |
b |
) |
[inline] |
Vector_& operator/= |
( |
const StdNumber & |
t |
) |
[inline] |
Vector_& 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 VectorBase< ELT >.
Copy assignment is deep copy but behavior depends on type of lhs: if view, rhs must match.
If owner, we reallocate and copy rhs.
Reimplemented from VectorBase< ELT >.
The documentation for this class was generated from the following file: