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 .
| |
| |
creates an instance v of
type Vector. v is initialized to a vector of dimension
with entries x.
| |
| |
| |
creates an
instance v of type Vector; v is initialized to the
vector with entries set [first,last). Requirement: Forward_iterator has value type NT.
|
|
| returns the dimension of v. |
|
| returns true iff v is the zero vector. |
|
|
returns the -th component of v. Precondition: . |
|
| iterator to the first component. |
|
| iterator beyond the last component. |
The same operations begin(), end() exist for const_iterator.
|
|
Addition. Precondition: v.dimension() == v1.dimension(). |
|
|
Subtraction. Precondition: v.dimension() = v1.dimension(). |
|
|
Inner Product. Precondition: v.dimension() = v1.dimension(). |
|
| Negation. |
|
|
Addition plus assignment. Precondition: v.dimension() == v1.dimension(). |
|
|
Subtraction plus assignment. Precondition: v.dimension() == v1.dimension(). |
|
| Scalar multiplication plus assignment. |
|
| Scalar division plus assignment. |
|
| Componentwise multiplication with number . |
|
| Componentwise multiplication with number . |