NOX
Development
|
Utility class for NOX::Direction::Broyden::BroydenMemory. More...
#include <NOX_Direction_Broyden.H>
Public Member Functions | |
BroydenMemoryUnit () | |
Constructor. More... | |
~BroydenMemoryUnit () | |
Destuctor. More... | |
void | reset (const NOX::Abstract::Vector &d) |
Reset this memory unit with a new update vector. More... | |
void | setStep (double step_length) |
Update the step length. More... | |
Teuchos::RCP< const NOX::Abstract::Vector > | sPtr () const |
Get pointer to . | |
double | step () const |
Get the step, . | |
double | sNormSqr () const |
Get . | |
Utility class for NOX::Direction::Broyden::BroydenMemory.
Stores an -vector and associated information for the limited-memory Broyden update.
Throughout the docuementation of this class, we make the following associations.
NOX::Direction::Broyden::BroydenMemoryUnit::BroydenMemoryUnit | ( | ) |
Constructor.
Sets #sptr to NULL, and #lambda and #snormsqr to zero.
NOX::Direction::Broyden::BroydenMemoryUnit::~BroydenMemoryUnit | ( | ) |
Destuctor.
Deletes #sptr.
void NOX::Direction::Broyden::BroydenMemoryUnit::reset | ( | const NOX::Abstract::Vector & | d | ) |
Reset this memory unit with a new update vector.
Let the vector represent the input argument. Then we set . Also recalculates and sets .
References NOX::Abstract::Vector::clone(), NOX::DeepCopy, Teuchos::is_null(), and NOX::Abstract::Vector::norm().
void NOX::Direction::Broyden::BroydenMemoryUnit::setStep | ( | double | step_length | ) |
Update the step length.
Set to the input argument. If , then reset and .