Creates vector structure. More...
Functions | |
Vector | operator* (const real a, const Vector &V) |
Returns the product of the current vector and a real a. More... | |
int | dim (const Vector &V) |
Returns the dimension of the vector. Similar to int Vector::dimension(). More... | |
Vector | abs (const Vector &V) |
Returns the absolute value term by term of the vector. More... | |
real | N1 (const Vector &V) |
Returns the L1-norm of the vector. More... | |
real | N2 (const Vector &V) |
Returns the L2-norm of the vector. More... | |
real | NMax (const Vector &V) |
Returns the Max-norm of the vector. More... | |
ostream & | operator<< (ostream &out, const Vector &V) |
Writes the components of the vector V on screen. More... | |
Creates vector structure.
Returns the absolute value term by term of the vector.
V | Vector |
int dim | ( | const Vector & | V | ) |
Returns the dimension of the vector. Similar to int Vector::dimension().
V | Vector |
Returns the L1-norm of the vector.
V | Vector |
Returns the L2-norm of the vector.
V | Vector |
Returns the Max-norm of the vector.
V | Vector |
ostream& operator<< | ( | ostream & | out, |
const Vector & | V | ||
) |
Writes the components of the vector V on screen.
out | |
V | Vector |