551 cout <<
"Vector.cpp: In method `void Vector::setValue(int, real)':\n";
552 cout <<
"Vector.cpp: first argument out of range\n";
553 cout <<
"carmen: *** [Vector.o] Execution error\n";
554 cout <<
"carmen: abort execution.\n";
572 cout <<
"Vector.cpp: In method `void Vector::value(int)':\n";
573 cout <<
"Vector.cpp: argument out of range\n";
574 cout <<
"carmen: *** [Vector.o] Execution error\n";
575 cout <<
"carmen: abort execution.\n";
Vector operator^(const Vector &V) const
Returns the vectorial product of the current vector and V.
Definition: Vector.cpp:1401
Vector abs(const Vector &V)
Returns the absolute value term by term of the vector.
Definition: Vector.cpp:1484
Vector operator+(const Vector &V) const
Returns the addition of the current vector and V.
Definition: Vector.cpp:624
bool operator==(const Vector &V) const
Compares the current vector to a vector V and returns true if they are equal.
Definition: Vector.cpp:373
Vector operator*(const real a, const Vector &V)
Returns the product of the current vector and a real a.
Definition: Vector.cpp:1462
void operator/=(const real a)
Divides the current vector by a real a.
Definition: Vector.cpp:1108
Vector operator|(const Vector &V) const
Returns the term-by-term product of the current vector and V.
Definition: Vector.cpp:1370
void operator-=(const Vector &V)
Subtracts V to the current vector.
Definition: Vector.cpp:714
void operator*=(const real a)
Multiplies the current vector by a real a.
Definition: Vector.cpp:961
Standard class for every vector in Carmen.
Definition: Vector.h:29
Vector()
Generates a 1D vector equal to zero.
Definition: Vector.cpp:36
int dim(const Vector &V)
Returns the dimension of the vector. Similar to int Vector::dimension().
Definition: Vector.cpp:1473
real NMax(const Vector &V)
Returns the Max-norm of the vector.
Definition: Vector.cpp:1543
Vector operator-() const
Returns the opposite of the current vector.
Definition: Vector.cpp:884
real N2(const Vector &V)
Returns the L2-norm of the vector.
Definition: Vector.cpp:1525
ostream & operator<<(ostream &out, const Vector &V)
Writes the components of the vector V on screen.
Definition: Vector.cpp:1562
Vector operator*(const real a) const
Returns the product of the current vector and a real a.
Definition: Vector.cpp:1031
real U[9]
Definition: Vector.h:448
void setValue(const int n, const real a)
Sets the component n to value a.
Definition: Vector.h:545
~Vector()
Destructor of Vector Class.
Definition: Vector.cpp:216
int dimension() const
Returns the dimension of the vector.
Definition: Vector.h:535
Vector operator/(const real a) const
Returns the division of the current vector by a real a.
Definition: Vector.cpp:1191
void operator+=(const Vector &V)
Adds V to the current vector.
Definition: Vector.cpp:541
real N1(const Vector &V)
Returns the L1-norm of the vector.
Definition: Vector.cpp:1507
real value(const int n) const
Returns the value of the component n.
Definition: Vector.h:565
bool isNaN() const
Returns true if one of the components of the current vector is not a number.
Definition: Vector.cpp:1437
int Columns
Definition: Vector.h:446
void setZero()
Sets all the components to zero.
Definition: Vector.cpp:228
#define real
Definition: PreProcessor.h:31
void setDimension(const int n)
Sets the dimension of the vector to n and reset values to zero.
Definition: Vector.cpp:298
void operator=(const Vector &V)
Set the current vector to the dimension and the value of V.
Definition: Vector.cpp:461