|
| VectorX () |
| Creates an empty vector.
|
|
| VectorX (size_t size) |
| Creates an unitialized vector. More...
|
|
| VectorX (std::initializer_list< ValueType > init) |
| Creates a vector from an initialization list.
|
|
template<typename U > |
| VectorX (const VectorX< U > &other) |
| Build a vector from a vector storing another type. More...
|
|
| VectorX (const VectorX &other) |
|
VectorX & | operator= (const VectorX &other) |
|
| VectorX (VectorX &&other) noexcept |
|
VectorX & | operator= (VectorX &&other) noexcept |
|
size_t | size () const |
| Returns the size of the vector, which also correspond to vector number of dimension.
|
|
ValueType | at (size_t index) const |
| Access vector's value at given index.
|
|
void | setAt (size_t index, ValueType value) |
| Set value as given index.
|
|
ValueType & | operator[] (size_t index) |
|
ValueType | operator[] (size_t index) const |
|
Iterator | begin () noexcept |
|
ConstIterator | begin () const noexcept |
|
Iterator | end () noexcept |
|
ConstIterator | end () const noexcept |
|
bool | operator== (const VectorX &other) const |
|
bool | operator!= (const VectorX &other) const |
|
double | squaredLength () const |
| Returns the vector's norm, squared. More...
|
|
double | length () const |
| Returns the vector's norm. More...
|
|
void | normalize () |
| Normalize the vector.
|
|
std::string | toString () const |
|
VectorX | operator- () const |
|
VectorX & | operator+= (const VectorX &v) |
|
VectorX & | operator-= (const VectorX &v) |
|
VectorX | operator+ (const VectorX &v) const |
|
VectorX | operator- (const VectorX &v) const |
|
VectorX & | operator*= (ValueType value) |
|
VectorX & | operator/= (ValueType value) |
|
VectorX | operator* (ValueType s) const |
|
VectorX | operator/ (ValueType s) const |
|
ValueType | dot (const VectorX &v) const |
| Dot product.
|
|
VectorX | cross (const VectorX &v) const |
| Cross product of two vectors. More...
|
|
VectorX & | operator*= (const VectorX &v) |
|
VectorX & | operator/= (const VectorX &v) |
|
VectorX | operator* (const VectorX &v) const |
|
VectorX | operator/ (const VectorX &v) const |
|
bool | operator< (const VectorX &other) const |
|
bool | operator<= (const VectorX &other) const |
|
bool | operator> (const VectorX &other) const |
|
bool | operator>= (const VectorX &other) const |
|
template<typename T>
class iolink::VectorX< T >
A dynamically sized arithmetic vector.