|
| VectorND () |
| Creates a N-dimensional VectorND.
|
|
template<typename... ARGS> |
| VectorND (T arg0, ARGS... args) |
| Construct a Vector from N arguments. More...
|
|
| VectorND (const std::vector< T > &vec) |
| construct vector from std::vector More...
|
|
template<class R > |
| VectorND (const Eigen::MatrixBase< R > &v) |
| Creates a 3D VectorND from Eigen type. More...
|
|
size_t | size () const |
| The dimension of the VectorND (i.e. 3). This method is provided to help support generic algorithms using size() and operator[].
|
|
template<class R > |
VectorND< N, T > | elemMultiply (const Eigen::MatrixBase< R > &rhs) const |
| element wise multiplication. More...
|
|
template<class R > |
VectorND< N, T > | elemDivide (const Eigen::MatrixBase< R > &rhs) const |
| element wise division. More...
|
|
template<class R > |
VectorND< N, T > | operator- (const Eigen::MatrixBase< R > &rhs) const |
| Vector subtraction.
|
|
template<class R > |
VectorND< N, T > | operator+ (const Eigen::MatrixBase< R > &rhs) const |
| Vector addition.
|
|
VectorND< N, T > | elemDivide (const VectorND< N, T > &rhs) const |
| element wise division. More...
|
|
VectorND< N, T > | elemMultiply (const VectorND< N, T > &rhs) const |
| Elementweise multiplication. More...
|
|
VectorND< N, T > | operator- (const VectorND< N, T > &rhs) const |
| Vector subtraction.
|
|
VectorND< N, T > | operator+ (const VectorND< N, T > &rhs) const |
| Vector addition.
|
|
VectorND< N, T > | operator- () const |
| Unary minus. More...
|
|
VectorND< N, T > | operator/ (T rhs) const |
| Scalar division. More...
|
|
VectorND< N, T > | operator* (T rhs) const |
| Scalar multiplication. More...
|
|
VectorND< N, T > | elemSubtract (const T &rhs) const |
| Scalar subtraction.
|
|
VectorND< N, T > | elemAdd (const T &rhs) const |
| Scalar addition.
|
|
T | norm2 () const |
| Returns the Euclidean norm (2-norm) of the VectorND. More...
|
|
T | norm1 () const |
| Returns the Manhatten norm (1-norm) of the VectorND. More...
|
|
T | normInf () const |
| Returns the infinte norm ( \(\inf\)-norm) of the VectorND. More...
|
|
double | dot (const VectorND< N, T > &vec) const |
| calculate the dot product More...
|
|
VectorND< N, T > | normalize () |
| normalize vector to get length 1 More...
|
|
const T & | operator() (size_t i) const |
| Returns reference to VectorND element. More...
|
|
T & | operator() (size_t i) |
| Returns reference to VectorND element. More...
|
|
const T & | operator[] (size_t i) const |
| Returns reference to VectorND element. More...
|
|
T & | operator[] (size_t i) |
| Returns reference to VectorND element. More...
|
|
EigenVectorND & | e () |
| Accessor for the internal Eigen VectorND.
|
|
const EigenVectorND & | e () const |
| Accessor for the internal Eigen VectorND.
|
|
std::vector< T > | toStdVector () const |
| converts the vector to a std:vector More...
|
|
VectorND< N, T > & | operator*= (double s) |
| Scalar multiplication.
|
|
VectorND< N, T > & | operator/= (double s) |
| Scalar division.
|
|
VectorND< N, T > & | operator+= (const VectorND< N, T > &v) |
| Vector addition.
|
|
VectorND< N, T > & | operator-= (const VectorND< N, T > &v) |
| Vector subtraction.
|
|
template<class R > |
VectorND< N, T > & | operator= (const Eigen::MatrixBase< R > &r) |
| copy a vector from eigen type More...
|
|
template<class R > |
VectorND< N, T > & | operator+= (const Eigen::MatrixBase< R > &r) |
| Vector addition.
|
|
template<class R > |
VectorND< N, T > & | operator-= (const Eigen::MatrixBase< R > &r) |
| Vector subtraction.
|
|
template<class R > |
bool | operator== (const Eigen::MatrixBase< R > &rhs) const |
| Compare with rhs for equality. More...
|
|
template<class R > |
bool | operator!= (const Eigen::MatrixBase< R > &rhs) const |
| Compare with rhs for inequality. More...
|
|
bool | operator== (const VectorND< N, T > &rhs) const |
| Compare with rhs for equality. More...
|
|
bool | operator!= (const VectorND< N, T > &rhs) const |
| Compare with rhs for inequality. More...
|
|
void | write (rw::common::OutputArchive &oarchive, const std::string &id) const |
|
void | read (rw::common::InputArchive &iarchive, const std::string &id) |
|
| operator EigenVectorND () const |
| implicit conversion to EigenVector
|
|
| operator EigenVectorND & () |
| implicit conversion to EigenVector
|
|
virtual | ~Serializable () |
| destructor
|
|
|
template<class R > |
VectorND< N, T > | operator- (const Eigen::MatrixBase< R > &lhs, const VectorND< N, T > &rhs) |
| Vector subtraction.
|
|
template<class R > |
VectorND< N, T > | operator+ (const Eigen::MatrixBase< R > &lhs, const VectorND< N, T > &rhs) |
| Vector subtraction.
|
|
VectorND< N, T > | operator/ (T lhs, const VectorND< N, T > &rhs) |
| Scalar division. More...
|
|
VectorND< N, T > | operator* (T lhs, const VectorND< N, T > &rhs) |
| Scalar multiplication. More...
|
|
std::ostream & | operator<< (std::ostream &out, const VectorND< N, T > &v) |
| Streaming operator. More...
|
|
template<class R > |
bool | operator== (const Eigen::MatrixBase< R > &lhs, const VectorND< N, T > &rhs) |
| Compare with rhs for equality. More...
|
|
template<class R > |
bool | operator!= (const Eigen::MatrixBase< R > &lhs, const VectorND< N, T > &rhs) |
| Compare with rhs for inequality. More...
|
|
|
(Note that these are not member functions.)
|
template<size_t ND, class T > |
const VectorND< ND, T > | cross (const VectorND< ND, T > &v1, const VectorND< ND, T > &v2) |
| Calculates the 3D VectorND cross product \( \mathbf{v1} \times \mathbf{v2} \). More...
|
|
template<size_t ND, class T > |
void | cross (const VectorND< ND, T > &v1, const VectorND< ND, T > &v2, VectorND< ND, T > &dst) |
| Calculates the 3D VectorND cross product \( \mathbf{v1} \times \mathbf{v2} \). More...
|
|
template<size_t ND, class T > |
T | dot (const VectorND< ND, T > &v1, const VectorND< ND, T > &v2) |
| Calculates the dot product \( \mathbf{v1} . \mathbf{v2} \). More...
|
|
template<size_t ND, class T > |
const VectorND< ND, T > | normalize (const VectorND< ND, T > &v) |
| Returns the normalized VectorND \(\mathbf{n}=\frac{\mathbf{v}}{\|\mathbf{v}\|} \). In case \( \|mathbf{v}\| = 0\) the zero VectorND is returned. More...
|
|
template<size_t ND, class T > |
double | angle (const VectorND< ND, T > &v1, const VectorND< ND, T > &v2, const VectorND< ND, T > &n) |
| Calculates the angle from \( \mathbf{v1}\) to \( \mathbf{v2} \) around the axis defined by \( \mathbf{v1} \times \mathbf{v2} \) with n determining the sign. More...
|
|
template<size_t ND, class T > |
double | angle (const VectorND< ND, T > &v1, const VectorND< ND, T > &v2) |
| Calculates the angle from \( \mathbf{v1}\) to \( \mathbf{v2} \) around the axis defined by \( \mathbf{v1} \times \mathbf{v2} \). More...
|
|
template<class Q , size_t ND, class T > |
const VectorND< ND, Q > | cast (const VectorND< ND, T > &v) |
| Casts VectorND<N,T> to VectorND<Q> More...
|
|