tminres
|
This class describes the interface of a VECTOR to be used in minres. More...
#include <Vector_trait.hpp>
Private Member Functions | |
Vector_trait & | operator= (const double &val)=0 |
Set all the entry of the Vector equal to val. | |
Vector_trait & | operator= (const Vector_trait &RHS)=0 |
Set the entry of the Vector equal to the entries in RHS. | |
void | Scale (const double &val)=0 |
multiply THIS by a scalar value | |
Vector_trait * | Clone ()=0 |
Create a new vector with the same structure of THIS. Values are not initialized. | |
Friends | |
void | add (const Vector_trait &v1, const double &c2, const Vector_trait &v2, Vector_trait &result) |
result = v1 + c2*v2 | |
void | add (const double &c1, const Vector_trait &v1, const double &c2, const Vector_trait &v2, Vector_trait &result) |
result = c1*v1 + c2*v2 | |
void | add (const double &alpha, const Vector_trait &v1, const Vector_trait &v2, Vector_trait &result) |
result = alpha(v1 + v2) | |
void | add (const Vector_trait &v1, const Vector_trait &v2, const Vector_trait &v3, Vector_trait &result) |
result = v1 + v2 + v3 | |
void | subtract (const Vector_trait &v1, const Vector_trait &v2, Vector_trait &result) |
result = v1 - v2 | |
double | InnerProduct (const Vector_trait &v1, const Vector_trait &v2) |
return the inner product of v1 and v2 |
This class describes the interface of a VECTOR to be used in minres.
Definition at line 24 of file Vector_trait.hpp.