|
|
| Vector () |
| | Default constructor.
|
| |
| | Vector (const Vector< value_type, S > &rhs) |
| | Copy constructor. More...
|
| |
| | Vector (std::initializer_list< value_type > values) |
| | Aggregate constructor from a brace-init-list. More...
|
| |
| | Vector (T *values) |
| | Initializes the vector from an array. More...
|
| |
| | Vector (T value) |
| | Initializes all components of the vector to the same value. More...
|
| |
| Vector< value_type, S > & | operator= (const Vector< value_type, S > &rhs) |
| | Copy assignment operator. More...
|
| |
| Vector< value_type, S > & | operator= (Vector< value_type, S > &&rhs) |
| | Move assignment operator. More...
|
| |
| Vector< value_type, S > & | operator+= (const Vector< value_type, S > &rhs) |
| | Vector addition. More...
|
| |
| Vector< value_type, S > & | operator-= (const Vector< value_type, S > &rhs) |
| | Vector subtraction. More...
|
| |
| Vector< value_type, S > & | operator*= (const T &rhs) |
| | Scales up this vector by a multiplying it with a number. More...
|
| |
| Vector< value_type, S > & | operator/= (const T &rhs) |
| | Scales down this vector by a diving it by a number. More...
|
| |
| value_type & | operator[] (size_type idx) |
| | Array subscript operator. More...
|
| |
| const value_type & | operator[] (size_type idx) const |
| | Array subscript operator (const). More...
|
| |
| Vector< value_type, S > | cross (const Vector< value_type, S > &rhs) |
| | Vector cross product. More...
|
| |
| iterator | begin () |
| | Iterator begin. More...
|
| |
| iterator | end () |
| | Iterator end. More...
|
| |
| value_type * | data () |
| | Access data. More...
|
| |
|
| Vector< value_type, S > | operator+ (Vector< value_type, S > lhs, const Vector< value_type, S > &rhs) |
| | Vector addition. More...
|
| |
| Vector< value_type, S > | operator- (Vector< value_type, S > lhs, const Vector< value_type, S > &rhs) |
| | Vector subtraction. More...
|
| |
| value_type | operator* (Vector< value_type, S > lhs, const Vector< value_type, S > &rhs) |
| | Vector dot product. More...
|
| |
| Vector< value_type, S > | operator* (Vector< value_type, S > lhs, const T &rhs) |
| | Scales up the vector by a multiplying it with a number. More...
|
| |
| Vector< value_type, S > | operator/ (Vector< value_type, S > lhs, const T &rhs) |
| | Scales down the vector by diving it by a number. More...
|
| |
| bool | operator== (const Vector< value_type, S > &lhs, const Vector< value_type, S > &rhs) |
| | Equality operator. More...
|
| |
| bool | operator!= (const Vector< value_type, S > &lhs, const Vector< value_type, S > &rhs) |
| | Inequality operator. More...
|
| |
| std::ostream & | operator<< (std::ostream &lhs, Vector< value_type, S > &rhs) |
| | Stream extraction operator. More...
|
| |
| std::istream & | operator>> (std::istream &lhs, Vector< value_type, S > &rhs) |
| | Stream insertion operator. More...
|
| |
template<typename T, std::size_t S>
class geomdl::Vector< T, S >
Represents n-dimensional vectors.
- Template Parameters
-
| T | type of the values contained, e.g. float, double |
| S | dimension |