1 #ifndef SimTK_SIMMATH_COMMON_H_
2 #define SimTK_SIMMATH_COMMON_H_
54 #if defined(SimTK_SIMMATH_BUILDING_SHARED_LIBRARY)
55 #define SimTK_SIMMATH_EXPORT __declspec(dllexport)
56 #elif defined(SimTK_SIMMATH_BUILDING_STATIC_LIBRARY) || defined(SimTK_USE_STATIC_LIBRARIES)
57 #define SimTK_SIMMATH_EXPORT
60 #define SimTK_SIMMATH_EXPORT __declspec(dllimport)
64 #define SimTK_SIMMATH_EXPORT
106 int info ) :
Base(fn, ln)
110 sprintf(buf,
"SimTK internal error: %s called with an illegal value to"
111 " argument #%d.\nPlease report this at SimTK.org.",
112 lapackRoutine, -info );
121 const char *paramName,
int paramValue,
const char *where) :
Base(fn, ln)
125 sprintf(buf,
"Incorrect array length in %s : %s is %d and must equal %s which is %d",
126 where, valueName, length, paramName, paramValue );
136 const char *where) :
Base(fn, ln)
140 sprintf(buf,
"%s failed because index %d in matrix was singular and factorization failed",
151 const char *where) :
Base(fn, ln)
155 sprintf(buf,
"%s failed because %s failed to converge", where, algorithm );
165 const char *where) :
Base(fn, ln)
169 sprintf(buf,
"%s failed because index %d in matrix was not positive definite and factorization failed ",
180 #endif // SimTK_SIMMATH_COMMON_H_
Definition: SimTKmath/include/simmath/internal/common.h:94
Definition: SimTKmath/include/simmath/internal/common.h:148
ConvergedFailed(const char *fn, int ln, const char *algorithm, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:150
static const double POSITIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:77
void setMessage(const std::string &msgin)
Definition: Exception.h:56
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
NotPositiveDefinite(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:164
Definition: SimTKmath/include/simmath/internal/common.h:118
Definition: SimTKmath/include/simmath/internal/common.h:162
static const double NEGATIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:78
Includes internal headers providing declarations for the basic SimTK Core classes, including Simmatrix.
UnrecognizedParameter(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:96
Definition: Exception.h:45
void SimTK_version_simmath(int *major, int *minor, int *build)
void SimTK_about_simmath(const char *key, int maxlen, char *value)
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:62
Definition: SimTKmath/include/simmath/internal/common.h:85
SingularMatrix(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:135
IncorrectArrayLength(const char *fn, int ln, const char *valueName, int length, const char *paramName, int paramValue, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:120
OptimizerFailed(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:87
Definition: SimTKmath/include/simmath/internal/common.h:103
Definition: SimTKmath/include/simmath/internal/common.h:133
#define SimTK_SIMMATH_EXPORT
Definition: SimTKmath/include/simmath/internal/common.h:64
IllegalLapackArg(const char *fn, int ln, const char *lapackRoutine, int info)
Definition: SimTKmath/include/simmath/internal/common.h:105