#include <NOX_LAPACK_Group.H>
Inheritance diagram for NOX::LAPACK::Group:
Public Member Functions | |
| Group (Interface &i) | |
| Constructor. | |
| Group (Interface &i, int m, int n) | |
| Constructor with used and allocated dimensions of matrices. | |
| Group (const NOX::LAPACK::Group &source, NOX::CopyType type=DeepCopy) | |
| Copy constructor. | |
| ~Group () | |
| Destructor. | |
| NOX::Abstract::Group & | operator= (const NOX::Abstract::Group &source) |
| Copies the source group into this group. | |
| NOX::Abstract::Group & | operator= (const NOX::LAPACK::Group &source) |
| See above. | |
| virtual NOX::Abstract::Group * | clone (NOX::CopyType type=NOX::DeepCopy) const |
| Create a new Group of the same derived type as this one by cloning this one, and return a pointer to the new group. | |
| void | print () const |
| Print out the group. | |
"Compute" functions. | |
| void | setX (const NOX::Abstract::Vector &y) |
| Set the solution vector x to y. | |
| void | setX (const NOX::LAPACK::Vector &y) |
| See above. | |
| void | computeX (const NOX::Abstract::Group &grp, const NOX::Abstract::Vector &d, double step) |
| Compute x = grp.x + step * d. | |
| void | computeX (const NOX::LAPACK::Group &grp, const NOX::LAPACK::Vector &d, double step) |
| See above. | |
| NOX::Abstract::Group::ReturnType | computeF () |
| Compute and store F(x). | |
| NOX::Abstract::Group::ReturnType | computeJacobian () |
| Compute and store Jacobian. | |
| NOX::Abstract::Group::ReturnType | computeGradient () |
| Compute and store gradient. | |
| NOX::Abstract::Group::ReturnType | computeNewton (NOX::Parameter::List ¶ms) |
| Compute the Newton direction, using parameters for the linear solve. | |
Jacobian operations. | |
Operations using the Jacobian matrix. These may not be defined in matrix-free scenarios. | |
| NOX::Abstract::Group::ReturnType | applyJacobian (const NOX::LAPACK::Vector &input, NOX::LAPACK::Vector &result) const |
| NOX::Abstract::Group::ReturnType | applyJacobian (const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| See above. | |
| NOX::Abstract::Group::ReturnType | applyJacobianTranspose (const NOX::LAPACK::Vector &input, NOX::LAPACK::Vector &result) const |
| NOX::Abstract::Group::ReturnType | applyJacobianTranspose (const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| See above. | |
| NOX::Abstract::Group::ReturnType | applyJacobianInverse (NOX::Parameter::List ¶ms, const NOX::LAPACK::Vector &input, Vector &result) const |
| NOX::Abstract::Group::ReturnType | applyJacobianInverse (NOX::Parameter::List ¶ms, const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| Applies the inverse of the Jacobian matrix to the given input vector and puts the answer in result. | |
"Is" functions | |
Checks to see if various objects have been computed. Returns true if the corresponding "compute" function has been called since the last update to the solution vector (via instantiation or computeX). | |
| bool | isF () const |
| Return true if F is valid. | |
| bool | isJacobian () const |
| Return true if the Jacobian is valid. | |
| bool | isGradient () const |
| Return true if the gradient is valid. | |
| bool | isNewton () const |
| Return true if the Newton direction is valid. | |
"Get" functions | |
Note that these function do not check whether or not the vectors are valid. Must use the "Is" functions for that purpose. | |
| const NOX::Abstract::Vector & | getX () const |
| Return solution vector. | |
| const NOX::Abstract::Vector & | getF () const |
| Return F(x). | |
| double | getNormF () const |
| Return 2-norm of F(x). | |
| const NOX::Abstract::Vector & | getGradient () const |
| Return gradient. | |
| const NOX::Abstract::Vector & | getNewton () const |
| Return Newton direction. | |
Protected Member Functions | |
| void | resetIsValid () |
| resets the isValid flags to false | |
Protected Attributes | |
| NOX::LAPACK::Matrix | jacobianMatrix |
| Jacobian Matrix. | |
| NOX::LAPACK::Matrix | jacobianLUFact |
| LU factorization of Jacobian Matrix. | |
| vector< int > | pivots |
| Pivot array for LU factorization. | |
| NOX::LAPACK::Interface & | problemInterface |
| Problem interface. | |
| double | normF |
| Norm of F. | |
Vectors | |
| NOX::LAPACK::Vector | xVector |
| Solution vector. | |
| NOX::LAPACK::Vector | fVector |
| Right-hand-side vector (function evaluation). | |
| NOX::LAPACK::Vector | newtonVector |
| Newton direction vector. | |
| NOX::LAPACK::Vector | gradientVector |
| Gradient vector (steepest descent vector). | |
IsValid flags | |
True if the current solution is up-to-date with respect to the currect xVector. | |
| bool | isValidF |
| bool | isValidJacobian |
| bool | isValidGradient |
| bool | isValidNewton |
| bool | isValidJacobianLUFact |
|
||||||||||||||||
|
Applies the inverse of the Jacobian matrix to the given input vector and puts the answer in result. Computes
where The "Tolerance" parameter specifies that the solution should be such that
Reimplemented from NOX::Abstract::Group. |
|
|
Create a new Group of the same derived type as this one by cloning this one, and return a pointer to the new group. If type is NOX::DeepCopy, then we need to create an exact replica of "this". Otherwise, if type is NOX::ShapeCopy, we need only replicate the shape of "this". Returns NULL if clone is not supported.
Implements NOX::Abstract::Group. Reimplemented in LOCA::LAPACK::Group. |
|
|
Compute and store F(x).
Implements NOX::Abstract::Group. Reimplemented in LOCA::LAPACK::Group. |
|
|
Compute and store gradient.
We can pose the nonlinear equation problem
In that case, the gradient (of
Reimplemented from NOX::Abstract::Group. |
|
|
Compute and store Jacobian. Recall that
The Jacobian is denoted by
Reimplemented from NOX::Abstract::Group. Reimplemented in LOCA::LAPACK::Group. |
|
|
Compute the Newton direction, using parameters for the linear solve. The Newton direction is the solution, s, of
The parameters are from the "Linear %Solver" sublist of the "Direction" sublist that is passed to solver during construction. The "Tolerance" parameter may be added/modified in the sublist of "Linear Solver" parameters that is passed into this function. The solution should be such that
Reimplemented from NOX::Abstract::Group. |
|
||||||||||||||||
|
Compute x = grp.x + step * d.
Let
Implements NOX::Abstract::Group. |
|
|
Return 2-norm of F(x). In other words,
Implements NOX::Abstract::Group. |
|
|
Return true if the gradient is valid.
Reimplemented from NOX::Abstract::Group. |
|
|
Return true if the Jacobian is valid.
Reimplemented from NOX::Abstract::Group. |
|
|
Return true if the Newton direction is valid.
Reimplemented from NOX::Abstract::Group. |
|
|
Copies the source group into this group.
Implements NOX::Abstract::Group. Reimplemented in LOCA::LAPACK::Group. |
|
|
Set the solution vector x to y.
Implements NOX::Abstract::Group. |
1.3.9.1