Skip to content
Snippets Groups Projects
Commit 0454b318 authored by Karl Palmen's avatar Karl Palmen
Browse files

Update and improve comments re #16748


Signed-off-by: default avatarKarl Palmen <karl.palmen@stfc.ac.uk>
parent e05edbc3
No related branches found
No related tags found
No related merge requests found
...@@ -28,13 +28,13 @@ std::string MoreSorensenMinimizer::name() const { return "More-Sorensen"; } ...@@ -28,13 +28,13 @@ std::string MoreSorensenMinimizer::name() const { return "More-Sorensen"; }
namespace { namespace {
/** Solve a system of linear equations. The system's matrix must be /** Solve a system of linear equations. The system's matrix must be
* positive-definite. * positive-definite.
* @param A :: A matrix of a system of equations. Must be positive-definite * @param A :: A matrix of a system of equations.
* otherwise * Must be positive-definite for success.
* the solution will not be found and an error code returned. * @param b :: A vector of the right-hand side.
* @param b :: A vector of the right-hand side. * @param LtL :: A work matrix.
* @param LtL :: A work matrix. * @param x :: A vector that receives the solution.
* @param x :: A vector that receives the solution. * @return true if successful
*/ */
bool solveSpd(const DoubleFortranMatrix &A, const DoubleFortranVector &b, bool solveSpd(const DoubleFortranMatrix &A, const DoubleFortranVector &b,
DoubleFortranMatrix &LtL, DoubleFortranVector &x) { DoubleFortranMatrix &LtL, DoubleFortranVector &x) {
...@@ -103,6 +103,7 @@ DoubleFortranVector negative(const DoubleFortranVector &v) { ...@@ -103,6 +103,7 @@ DoubleFortranVector negative(const DoubleFortranVector &v) {
* @param options :: The options. * @param options :: The options.
* @param inform :: The inform struct. * @param inform :: The inform struct.
* @param w :: The work struct. * @param w :: The work struct.
* @return true if successful
*/ */
bool getPdShift(double &sigma, DoubleFortranVector &d, bool getPdShift(double &sigma, DoubleFortranVector &d,
const nlls_options &options, nlls_inform &inform, const nlls_options &options, nlls_inform &inform,
...@@ -136,6 +137,7 @@ bool getPdShift(double &sigma, DoubleFortranVector &d, ...@@ -136,6 +137,7 @@ bool getPdShift(double &sigma, DoubleFortranVector &d,
* @param b :: The second vector. * @param b :: The second vector.
* @param Delta :: The Delta. * @param Delta :: The Delta.
* @param beta :: The beta. * @param beta :: The beta.
* @return true if successful
*/ */
bool findBeta(const DoubleFortranVector &a, const DoubleFortranVector &b, bool findBeta(const DoubleFortranVector &a, const DoubleFortranVector &b,
double Delta, double &beta) { double Delta, double &beta) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment