An instance of data type Vector is a vector of variables of number type NT. Together with the type Matrix it realizes the basic operations of linear algebra.
| |
the ring type of the components.
| |
| |
the iterator type for accessing components.
| |
| |
the const iterator type for accessing
components.
|
| |||
creates an instance v of type
Vector.
| |||
| |||
creates an instance v of type
Vector. v is initialized to a vector of dimension d.
| |||
| |||
creates an instance v of
type Vector. v is initialized to a vector of dimension
d with entries x.
| |||
| |||
| |||
creates an
instance v of type Vector; v is initialized to the
vector with entries set [first,last).
|
|
| returns the dimension of v. | ||
|
| returns true iff v is the zero vector. | ||
|
|
returns the i-th component of v.
| ||
|
| iterator to the first component. | ||
|
| iterator beyond the last component. |
The same operations begin(), end() exist for const_iterator.
|
|
Addition.
| ||
|
|
Subtraction.
| ||
|
|
Inner Product.
| ||
|
| Negation. | ||
|
|
Addition plus assignment.
| ||
|
|
Subtraction plus assignment.
| ||
|
| Scalar multiplication plus assignment. | ||
|
| Scalar division plus assignment. | ||
|
| Component-wise multiplication with number r. | ||
|
| Component-wise multiplication with number r. |