Belos  Version of the Day
BelosStatusTestGenResNorm.hpp
Go to the documentation of this file.
1 //@HEADER
2 // ************************************************************************
3 //
4 // Belos: Block Linear Solvers Package
5 // Copyright 2004 Sandia Corporation
6 //
7 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
8 // the U.S. Government retains certain rights in this software.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38 //
39 // ************************************************************************
40 //@HEADER
41 
42 #ifndef BELOS_STATUS_TEST_GEN_RESNORM_H
43 #define BELOS_STATUS_TEST_GEN_RESNORM_H
44 
51 #include "BelosLinearProblem.hpp"
52 #include "BelosMultiVecTraits.hpp"
53 
76 namespace Belos {
77 
78 template <class ScalarType, class MV, class OP>
79 class StatusTestGenResNorm: public StatusTestResNorm<ScalarType,MV,OP> {
80 
81  public:
82 
83  // Convenience typedefs
84  typedef Teuchos::ScalarTraits<ScalarType> SCT;
85  typedef typename SCT::magnitudeType MagnitudeType;
87 
89 
90 
94  enum ResType {Implicit,
97  };
98 
100 
102 
103 
117  StatusTestGenResNorm( MagnitudeType Tolerance, int quorum = -1, bool showMaxResNormOnly = false );
118 
120  virtual ~StatusTestGenResNorm();
122 
124 
125 
127 
134  int defineResForm( ResType TypeOfResidual, NormType TypeOfNorm);
135 
137 
157  int defineScaleForm( ScaleType TypeOfScaling, NormType TypeOfNorm, MagnitudeType ScaleValue = Teuchos::ScalarTraits<MagnitudeType>::one());
158 
160 
163  int setTolerance(MagnitudeType tolerance) {tolerance_ = tolerance; return(0);}
164 
167  int setQuorum(int quorum) {quorum_ = quorum; return(0);}
168 
170  int setShowMaxResNormOnly(bool showMaxResNormOnly) {showMaxResNormOnly_ = showMaxResNormOnly; return(0);}
171 
173 
175 
176 
184 
186  StatusType getStatus() const {return(status_);};
188 
190 
191 
193  void reset();
194 
196 
198 
199 
201  void print(std::ostream& os, int indent = 0) const;
202 
204  void printStatus(std::ostream& os, StatusType type) const;
206 
208 
209 
213  Teuchos::RCP<MV> getSolution() { if (restype_==Implicit) { return Teuchos::null; } else { return curSoln_; } }
214 
217  int getQuorum() const { return quorum_; }
218 
220  bool getShowMaxResNormOnly() { return showMaxResNormOnly_; }
221 
223  std::vector<int> convIndices() { return ind_; }
224 
226  MagnitudeType getTolerance() const {return(tolerance_);};
227 
229  const std::vector<MagnitudeType>* getTestValue() const {return(&testvector_);};
230 
232  const std::vector<MagnitudeType>* getResNormValue() const {return(&resvector_);};
233 
235  const std::vector<MagnitudeType>* getScaledNormValue() const {return(&scalevector_);};
236 
239  bool getLOADetected() const { return false; }
240 
242 
243 
246 
254 
257 
259  std::string description() const
260  {
261  std::ostringstream oss;
262  oss << "Belos::StatusTestGenResNorm<>: " << resFormStr();
263  oss << ", tol = " << tolerance_;
264  return oss.str();
265  }
267 
268  protected:
269 
270  private:
271 
273 
274 
275  std::string resFormStr() const
276  {
277  std::ostringstream oss;
278  oss << "(";
279  oss << ((resnormtype_==OneNorm) ? "1-Norm" : (resnormtype_==TwoNorm) ? "2-Norm" : "Inf-Norm");
280  oss << ((restype_==Explicit) ? " Exp" : " Imp");
281  oss << " Res Vec) ";
282 
283  // If there is no residual scaling, return current string.
284  if (scaletype_!=None)
285  {
286  // Insert division sign.
287  oss << "/ ";
288 
289  // Determine output string for scaling, if there is any.
290  if (scaletype_==UserProvided)
291  oss << " (User Scale)";
292  else {
293  oss << "(";
294  oss << ((scalenormtype_==OneNorm) ? "1-Norm" : (resnormtype_==TwoNorm) ? "2-Norm" : "Inf-Norm");
295  if (scaletype_==NormOfInitRes)
296  oss << " Res0";
297  else if (scaletype_==NormOfPrecInitRes)
298  oss << " Prec Res0";
299  else
300  oss << " RHS ";
301  oss << ")";
302  }
303  }
304 
305  return oss.str();
306  }
307 
309 
311 
312 
314  MagnitudeType tolerance_;
315 
317  int quorum_;
318 
320  bool showMaxResNormOnly_;
321 
323  ResType restype_;
324 
326  NormType resnormtype_;
327 
329  ScaleType scaletype_;
330 
332  NormType scalenormtype_;
333 
335  MagnitudeType scalevalue_;
336 
338  std::vector<MagnitudeType> scalevector_;
339 
341  std::vector<MagnitudeType> resvector_;
342 
344  std::vector<MagnitudeType> testvector_;
345 
347  std::vector<int> ind_;
348 
350  Teuchos::RCP<MV> curSoln_;
351 
353  StatusType status_;
354 
356  int curBlksz_;
357 
359  int curNumRHS_;
360 
362  std::vector<int> curLSIdx_;
363 
365  int curLSNum_;
366 
368  int numrhs_;
369 
371  bool firstcallCheckStatus_;
372 
374  bool firstcallDefineResForm_;
375 
377  bool firstcallDefineScaleForm_;
378 
380 
381 };
382 
383 template <class ScalarType, class MV, class OP>
384 StatusTestGenResNorm<ScalarType,MV,OP>::StatusTestGenResNorm( MagnitudeType Tolerance, int quorum, bool showMaxResNormOnly )
385  : tolerance_(Tolerance),
386  quorum_(quorum),
387  showMaxResNormOnly_(showMaxResNormOnly),
388  restype_(Implicit),
389  resnormtype_(TwoNorm),
390  scaletype_(NormOfInitRes),
391  scalenormtype_(TwoNorm),
392  scalevalue_(1.0),
393  status_(Undefined),
394  curBlksz_(0),
395  curLSNum_(0),
396  numrhs_(0),
397  firstcallCheckStatus_(true),
398  firstcallDefineResForm_(true),
399  firstcallDefineScaleForm_(true)
400 {
401  // This constructor will compute the residual ||r_i||/||r0_i|| <= tolerance using the 2-norm of
402  // the implicit residual std::vector.
403 }
404 
405 template <class ScalarType, class MV, class OP>
407 {}
408 
409 template <class ScalarType, class MV, class OP>
411 {
412  status_ = Undefined;
413  curBlksz_ = 0;
414  curLSNum_ = 0;
415  curLSIdx_.resize(0);
416  numrhs_ = 0;
417  ind_.resize(0);
418  firstcallCheckStatus_ = true;
419  curSoln_ = Teuchos::null;
420 }
421 
422 template <class ScalarType, class MV, class OP>
424 {
425  TEUCHOS_TEST_FOR_EXCEPTION(firstcallDefineResForm_==false,StatusTestError,
426  "StatusTestGenResNorm::defineResForm(): The residual form has already been defined.");
427  firstcallDefineResForm_ = false;
428 
429  restype_ = TypeOfResidual;
430  resnormtype_ = TypeOfNorm;
431 
432  return(0);
433 }
434 
435 template <class ScalarType, class MV, class OP>
437  MagnitudeType ScaleValue )
438 {
439  TEUCHOS_TEST_FOR_EXCEPTION(firstcallDefineScaleForm_==false,StatusTestError,
440  "StatusTestGenResNorm::defineScaleForm(): The scaling type has already been defined.");
441  firstcallDefineScaleForm_ = false;
442 
443  scaletype_ = TypeOfScaling;
444  scalenormtype_ = TypeOfNorm;
445  scalevalue_ = ScaleValue;
446 
447  return(0);
448 }
449 
450 template <class ScalarType, class MV, class OP>
452 {
453  MagnitudeType zero = Teuchos::ScalarTraits<MagnitudeType>::zero();
454  const LinearProblem<ScalarType,MV,OP>& lp = iSolver->getProblem();
455  // Compute scaling term (done once for each block that's being solved)
456  if (firstcallCheckStatus_) {
457  StatusType status = firstCallCheckStatusSetup(iSolver);
458  if(status==Failed) {
459  status_ = Failed;
460  return(status_);
461  }
462  }
463  //
464  // This section computes the norm of the residual std::vector
465  //
466  if ( curLSNum_ != lp.getLSNumber() ) {
467  //
468  // We have moved on to the next rhs block
469  //
470  curLSNum_ = lp.getLSNumber();
471  curLSIdx_ = lp.getLSIndex();
472  curBlksz_ = (int)curLSIdx_.size();
473  int validLS = 0;
474  for (int i=0; i<curBlksz_; ++i) {
475  if (curLSIdx_[i] > -1 && curLSIdx_[i] < numrhs_)
476  validLS++;
477  }
478  curNumRHS_ = validLS;
479  curSoln_ = Teuchos::null;
480  //
481  } else {
482  //
483  // We are in the same rhs block, return if we are converged
484  //
485  if (status_==Passed) { return status_; }
486  }
487  if (restype_==Implicit) {
488  //
489  // get the native residual norms from the solver for this block of right-hand sides.
490  // If the residual is returned in multivector form, use the resnormtype to compute the residual norms.
491  // Otherwise the native residual is assumed to be stored in the resvector_.
492  //
493  std::vector<MagnitudeType> tmp_resvector( curBlksz_ );
494  Teuchos::RCP<const MV> residMV = iSolver->getNativeResiduals( &tmp_resvector );
495  if ( residMV != Teuchos::null ) {
496  tmp_resvector.resize( MVT::GetNumberVecs( *residMV ) );
497  MVT::MvNorm( *residMV, tmp_resvector, resnormtype_ );
498  typename std::vector<int>::iterator p = curLSIdx_.begin();
499  for (int i=0; p<curLSIdx_.end(); ++p, ++i) {
500  // Check if this index is valid
501  if (*p != -1)
502  resvector_[*p] = tmp_resvector[i];
503  }
504  } else {
505  typename std::vector<int>::iterator p = curLSIdx_.begin();
506  for (int i=0; p<curLSIdx_.end(); ++p, ++i) {
507  // Check if this index is valid
508  if (*p != -1)
509  resvector_[*p] = tmp_resvector[i];
510  }
511  }
512  }
513  else if (restype_==Explicit) {
514  //
515  // Request the true residual for this block of right-hand sides.
516  //
517  Teuchos::RCP<MV> cur_update = iSolver->getCurrentUpdate();
518  curSoln_ = lp.updateSolution( cur_update );
519  Teuchos::RCP<MV> cur_res = MVT::Clone( *curSoln_, MVT::GetNumberVecs( *curSoln_ ) );
520  lp.computeCurrResVec( &*cur_res, &*curSoln_ );
521  std::vector<MagnitudeType> tmp_resvector( MVT::GetNumberVecs( *cur_res ) );
522  MVT::MvNorm( *cur_res, tmp_resvector, resnormtype_ );
523  typename std::vector<int>::iterator p = curLSIdx_.begin();
524  for (int i=0; p<curLSIdx_.end(); ++p, ++i) {
525  // Check if this index is valid
526  if (*p != -1)
527  resvector_[*p] = tmp_resvector[i];
528  }
529  }
530  //
531  // Compute the new linear system residuals for testing.
532  // (if any of them don't meet the tolerance or are NaN, then we exit with that status)
533  //
534  if ( scalevector_.size() > 0 ) {
535  typename std::vector<int>::iterator p = curLSIdx_.begin();
536  for (; p<curLSIdx_.end(); ++p) {
537  // Check if this index is valid
538  if (*p != -1) {
539  // Scale the std::vector accordingly
540  if ( scalevector_[ *p ] != zero ) {
541  // Don't intentionally divide by zero.
542  testvector_[ *p ] = resvector_[ *p ] / scalevector_[ *p ] / scalevalue_;
543  } else {
544  testvector_[ *p ] = resvector_[ *p ] / scalevalue_;
545  }
546  }
547  }
548  }
549  else {
550  typename std::vector<int>::iterator p = curLSIdx_.begin();
551  for (; p<curLSIdx_.end(); ++p) {
552  // Check if this index is valid
553  if (*p != -1)
554  testvector_[ *p ] = resvector_[ *p ] / scalevalue_;
555  }
556  }
557 
558  // Check status of new linear system residuals and see if we have the quorum.
559  int have = 0;
560  ind_.resize( curLSIdx_.size() );
561  typename std::vector<int>::iterator p = curLSIdx_.begin();
562  for (; p<curLSIdx_.end(); ++p) {
563  // Check if this index is valid
564  if (*p != -1) {
565  // Check if any of the residuals are larger than the tolerance.
566  if (testvector_[ *p ] > tolerance_) {
567  // do nothing.
568  } else if (testvector_[ *p ] <= tolerance_) {
569  ind_[have] = *p;
570  have++;
571  } else {
572  // Throw an std::exception if a NaN is found.
573  status_ = Failed;
574  TEUCHOS_TEST_FOR_EXCEPTION(true,StatusTestError,"StatusTestGenResNorm::checkStatus(): NaN has been detected.");
575  }
576  }
577  }
578  ind_.resize(have);
579  int need = (quorum_ == -1) ? curNumRHS_: quorum_;
580  status_ = (have >= need) ? Passed : Failed;
581 
582  // Return the current status
583  return status_;
584 }
585 
586 template <class ScalarType, class MV, class OP>
587 void StatusTestGenResNorm<ScalarType,MV,OP>::print(std::ostream& os, int indent) const
588 {
589  for (int j = 0; j < indent; j ++)
590  os << ' ';
591  printStatus(os, status_);
592  os << resFormStr();
593  if (status_==Undefined)
594  os << ", tol = " << tolerance_ << std::endl;
595  else {
596  os << std::endl;
597  if(showMaxResNormOnly_ && curBlksz_ > 1) {
598  const MagnitudeType maxRelRes = *std::max_element(
599  testvector_.begin()+curLSIdx_[0],testvector_.begin()+curLSIdx_[curBlksz_-1]
600  );
601  for (int j = 0; j < indent + 13; j ++)
602  os << ' ';
603  os << "max{residual["<<curLSIdx_[0]<<"..."<<curLSIdx_[curBlksz_-1]<<"]} = " << maxRelRes
604  << ( maxRelRes <= tolerance_ ? " <= " : " > " ) << tolerance_ << std::endl;
605  }
606  else {
607  for ( int i=0; i<numrhs_; i++ ) {
608  for (int j = 0; j < indent + 13; j ++)
609  os << ' ';
610  os << "residual [ " << i << " ] = " << testvector_[ i ];
611  os << ((testvector_[i]<tolerance_) ? " < " : (testvector_[i]==tolerance_) ? " == " : (testvector_[i]>tolerance_) ? " > " : " " ) << tolerance_ << std::endl;
612  }
613  }
614  }
615  os << std::endl;
616 }
617 
618 template <class ScalarType, class MV, class OP>
620 {
621  os << std::left << std::setw(13) << std::setfill('.');
622  switch (type) {
623  case Passed:
624  os << "Converged";
625  break;
626  case Failed:
627  os << "Unconverged";
628  break;
629  case Undefined:
630  default:
631  os << "**";
632  break;
633  }
634  os << std::left << std::setfill(' ');
635  return;
636 }
637 
638 template <class ScalarType, class MV, class OP>
640 {
641  int i;
642  MagnitudeType zero = Teuchos::ScalarTraits<MagnitudeType>::zero();
643  MagnitudeType one = Teuchos::ScalarTraits<MagnitudeType>::one();
644  const LinearProblem<ScalarType,MV,OP>& lp = iSolver->getProblem();
645  // Compute scaling term (done once for each block that's being solved)
646  if (firstcallCheckStatus_) {
647  //
648  // Get some current solver information.
649  //
650  firstcallCheckStatus_ = false;
651 
652  if (scaletype_== NormOfRHS) {
653  Teuchos::RCP<const MV> rhs = lp.getRHS();
654  numrhs_ = MVT::GetNumberVecs( *rhs );
655  scalevector_.resize( numrhs_ );
656  MVT::MvNorm( *rhs, scalevector_, scalenormtype_ );
657  }
658  else if (scaletype_==NormOfInitRes) {
659  Teuchos::RCP<const MV> init_res = lp.getInitResVec();
660  numrhs_ = MVT::GetNumberVecs( *init_res );
661  scalevector_.resize( numrhs_ );
662  MVT::MvNorm( *init_res, scalevector_, scalenormtype_ );
663  }
664  else if (scaletype_==NormOfPrecInitRes) {
665  Teuchos::RCP<const MV> init_res = lp.getInitPrecResVec();
666  numrhs_ = MVT::GetNumberVecs( *init_res );
667  scalevector_.resize( numrhs_ );
668  MVT::MvNorm( *init_res, scalevector_, scalenormtype_ );
669  }
670  else {
671  numrhs_ = MVT::GetNumberVecs( *(lp.getRHS()) );
672  }
673 
674  resvector_.resize( numrhs_ );
675  testvector_.resize( numrhs_ );
676 
677  curLSNum_ = lp.getLSNumber();
678  curLSIdx_ = lp.getLSIndex();
679  curBlksz_ = (int)curLSIdx_.size();
680  int validLS = 0;
681  for (i=0; i<curBlksz_; ++i) {
682  if (curLSIdx_[i] > -1 && curLSIdx_[i] < numrhs_)
683  validLS++;
684  }
685  curNumRHS_ = validLS;
686  //
687  // Initialize the testvector.
688  for (i=0; i<numrhs_; i++) { testvector_[i] = one; }
689 
690  // Return an error if the scaling is zero.
691  if (scalevalue_ == zero) {
692  return Failed;
693  }
694  }
695  return Undefined;
696 }
697 
698 } // end namespace Belos
699 
700 #endif /* BELOS_STATUS_TEST_RESNORM_H */
int defineScaleForm(ScaleType TypeOfScaling, NormType TypeOfNorm, MagnitudeType ScaleValue=Teuchos::ScalarTraits< MagnitudeType >::one())
Define form of the scaling, its norm, its optional weighting std::vector, or, alternatively, define an explicit value.
MagnitudeType getTolerance() const
Returns the value of the tolerance, , set in the constructor.
const std::vector< MagnitudeType > * getTestValue() const
Returns the test value, , computed in most recent call to CheckStatus.
ScaleType
The type of scaling to use on the residual norm value.
Definition: BelosTypes.hpp:119
Exception thrown to signal error in a status test during Belos::StatusTest::checkStatus().
int setShowMaxResNormOnly(bool showMaxResNormOnly)
Set whether the only maximum residual norm is displayed when the print() method is called...
StatusType firstCallCheckStatusSetup(Iteration< ScalarType, MV, OP > *iSolver)
Call to setup initial scaling std::vector.
Teuchos::RCP< MV > updateSolution(const Teuchos::RCP< MV > &update=Teuchos::null, bool updateLP=false, ScalarType scale=Teuchos::ScalarTraits< ScalarType >::one())
Compute the new solution to the linear system using the given update vector.
Declaration of basic traits for the multivector type.
std::string description() const
Method to return description of the maximum iteration status test.
An abstract class of StatusTest for stopping criteria using residual norms.
void printStatus(std::ostream &os, StatusType type) const
Print message for each status specific to this stopping test.
An implementation of StatusTestResNorm using a family of residual norms.
Teuchos::RCP< const MV > getRHS() const
A pointer to the right-hand side B.
StatusType
Whether the StatusTest wants iteration to stop.
Definition: BelosTypes.hpp:183
static int GetNumberVecs(const MV &mv)
Obtain the number of vectors in mv.
const std::vector< MagnitudeType > * getResNormValue() const
Returns the residual norm value, , computed in most recent call to CheckStatus.
Traits class which defines basic operations on multivectors.
static Teuchos::RCP< MV > Clone(const MV &mv, const int numvecs)
Creates a new empty MV containing numvecs columns.
MultiVecTraits< ScalarType, MV > MVT
bool getShowMaxResNormOnly()
Returns whether the only maximum residual norm is displayed when the print() method is called...
Teuchos::RCP< const MV > getInitResVec() const
A pointer to the initial unpreconditioned residual vector.
int defineResForm(ResType TypeOfResidual, NormType TypeOfNorm)
Define form of the residual, its norm and optional weighting std::vector.
Teuchos::ScalarTraits< ScalarType > SCT
A linear system to solve, and its associated information.
Class which describes the linear problem to be solved by the iterative solver.
int getLSNumber() const
The number of linear systems that have been set.
int setQuorum(int quorum)
Sets the number of residuals that must pass the convergence test before Passed is returned...
virtual Teuchos::RCP< MV > getCurrentUpdate() const =0
Get the current update to the linear system.
std::vector< int > convIndices()
Returns the std::vector containing the indices of the residuals that passed the test.
Belos::StatusTest abstract class for specifying a residual norm stopping criteria.
StatusType getStatus() const
Return the result of the most recent CheckStatus call.
virtual const LinearProblem< ScalarType, MV, OP > & getProblem() const =0
Get a constant reference to the linear problem.
Teuchos::RCP< const MV > getInitPrecResVec() const
A pointer to the preconditioned initial residual vector.
int setTolerance(MagnitudeType tolerance)
Set the value of the tolerance.
NormType
The type of vector norm to compute.
Definition: BelosTypes.hpp:97
const std::vector< int > getLSIndex() const
(Zero-based) indices of the linear system(s) currently being solved.
StatusType checkStatus(Iteration< ScalarType, MV, OP > *iSolver)
Check convergence status: Passed, Failed, or Undefined.
void computeCurrResVec(MV *R, const MV *X=0, const MV *B=0) const
Compute a residual R for this operator given a solution X, and right-hand side B. ...
void print(std::ostream &os, int indent=0) const
Output formatted description of stopping test to output stream.
ResType
Select how the residual std::vector is produced.
static void MvNorm(const MV &mv, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &normvec, NormType type=TwoNorm)
Compute the 2-norm of each individual vector of mv. Upon return, normvec[i] holds the value of ...
void reset()
Resets the internal configuration to the initial state.
int getQuorum() const
Returns the number of residuals that must pass the convergence test before Passed is returned...
StatusTestGenResNorm(MagnitudeType Tolerance, int quorum=-1, bool showMaxResNormOnly=false)
Constructor.
virtual Teuchos::RCP< const MV > getNativeResiduals(std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > *norms) const =0
Get the residuals native to the solver.
const std::vector< MagnitudeType > * getScaledNormValue() const
Returns the scaled norm value, .
Teuchos::RCP< MV > getSolution()
Returns the current solution estimate that was computed for the most recent residual test...
bool getLOADetected() const
Returns a boolean indicating a loss of accuracy has been detected in computing the residual...