127 if (
E_NOERROR == error)
return "No error";
128 else if (
E_NO_CONVERGE == error)
return "Failed to converge";
129 else if (
E_UNDEFINED == error)
return "Undefined value";
130 else if (
E_DEGRADED == error)
return "Converged but degraded solution";
131 else if (
E_NOT_UP_TO_DATE == error)
return "Internal data structures not up to date with Chain";
132 else if (
E_SIZE_MISMATCH == error)
return "The size of the input does not match the internal state";
134 else if (
E_OUT_OF_RANGE == error)
return "The requested index is out of range";
135 else if (
E_NOT_IMPLEMENTED == error)
return "The requested function is not yet implemented";
137 else return "UNKNOWN ERROR";
virtual int getError() const
Return the latest error.
Maximum number of iterations exceeded.
virtual const char * strError(const int error) const
Input size does not match internal state.
virtual void updateInternalDataStructures()=0
Undefined value (e.g. computed a NAN, or tan(90 degrees) )
Converged but degraded solution (e.g. WDLS with psuedo-inverse singular)
Internal svd calculation failed.
Requested index out of range.
SolverI()
Initialize latest error to E_NOERROR.
int error
Latest error, initialized to E_NOERROR in constructor.