![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Inheritance diagram for CDPL.Math.Vector2FArrayBFGSMinimizer:Classes | |
| class | Status |
Public Member Functions | |
| None | __init__ (FloatVector2FArrayFunctor func, object grad_func) |
Initializes the Vector2FArrayBFGSMinimizer instance. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| float | getGradientNorm () |
| float | getFunctionDelta () |
| float | getFunctionValue () |
| int | getNumIterations () |
| Status | getStatus () |
| Status | minimize (Vector2FArray x, Vector2FArray g, int max_iter, float g_norm, float delta_f, bool do_setup=True) |
| float | setup (Vector2FArray x, Vector2FArray g, float step_size=0.001, float tol=0.15) |
| tuple | iterate (float f, Vector2FArray x, Vector2FArray g) |
Properties | |
| objectID = property(getObjectID) | |
| gradientNorm = property(getGradientNorm) | |
| functionDelta = property(getFunctionDelta) | |
| functionValue = property(getFunctionValue) | |
| numIterations = property(getNumIterations) | |
| status = property(getStatus) | |
| None CDPL.Math.Vector2FArrayBFGSMinimizer.__init__ | ( | FloatVector2FArrayFunctor | func, |
| object | grad_func | ||
| ) |
Initializes the Vector2FArrayBFGSMinimizer instance.
| func | |
| grad_func |
| int CDPL.Math.Vector2FArrayBFGSMinimizer.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Vector2FArrayBFGSMinimizer instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two Vector2FArrayBFGSMinimizer instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().