NOX
Development
|
Pure virtual base class for the vector space used by NOX::Epetra::Vectors. More...
#include <NOX_Epetra_VectorSpace.H>
Public Member Functions | |
VectorSpace () | |
Constructor. | |
virtual | ~VectorSpace () |
Destructor. | |
virtual double | innerProduct (const Epetra_Vector &a, const Epetra_Vector &b) const =0 |
Computes the inner product: <a,b>. | |
virtual double | norm (const Epetra_Vector &a, NOX::Abstract::Vector::NormType=NOX::Abstract::Vector::TwoNorm) const =0 |
Computes the norm. More... | |
Pure virtual base class for the vector space used by NOX::Epetra::Vectors.
This class allows users to override the inner product and norm used by the NOX::Epetra::Vector class. The most frequent use of this class is for introducing a weighted norm throughout NOX.
|
pure virtual |
Computes the norm.
For an L2 norm, the computation is: sqrt( <a,a> ).
Implemented in NOX::Epetra::VectorSpaceScaledL2, and NOX::Epetra::VectorSpaceL2.