Lapack++
Classes | Defines
laexcp.h File Reference

Exception class for Lapack++ exceptions. More...

Go to the source code of this file.

Classes

class  LaException
 General exception class in Lapack++. More...

Defines

#define __ASSERT_H
#define LA_ASSERTZERO(infovar)

Detailed Description

Exception class for Lapack++ exceptions.


Define Documentation

#define __ASSERT_H
#define LA_ASSERTZERO (   infovar)
Value:
if ((infovar) != 0) { \
    std::ostringstream temp; \
    temp << ":" << __LINE__ << ": Internal error in LAPACK function: Returned info=" << (infovar);      \
    if (infovar < 0) \
      temp << ". This means the "<< -(infovar) << "th argument has an invalid value."; \
    if (infovar > 0) \
      temp << ". This means the calculation did not converge. Maybe an input matrix was ill-conditioned, or any of the input values were NaN or inf."; \
    throw(LaException(__FILE__, temp.str().c_str())); \
  }