1 #ifndef SimTK_SIMMATH_COMMON_H_ 2 #define SimTK_SIMMATH_COMMON_H_ 53 #if defined(_WIN32) && defined(_MSC_VER) 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 86 #pragma warning(disable:4996) // don't warn about sprintf, etc. 102 setMessage(
"Unrecognized Parameter: " + msg );
110 int info ) :
Base(fn, ln)
114 sprintf(buf,
"SimTK internal error: %s called with an illegal value to" 115 " argument #%d.\nPlease report this at SimTK.org.",
116 lapackRoutine, -info );
125 const char *paramName,
int paramValue,
const char *where) :
Base(fn, ln)
129 sprintf(buf,
"Incorrect array length in %s : %s is %d and must equal %s which is %d",
130 where, valueName, length, paramName, paramValue );
140 const char *where) :
Base(fn, ln)
144 sprintf(buf,
"%s failed because index %d in matrix was singular and factorization failed",
155 const char *where) :
Base(fn, ln)
159 sprintf(buf,
"%s failed because %s failed to converge", where, algorithm );
169 const char *where) :
Base(fn, ln)
173 sprintf(buf,
"%s failed because index %d in matrix was not positive definite and factorization failed ",
189 #endif // SimTK_SIMMATH_COMMON_H_ Definition: SimTKmath/include/simmath/internal/common.h:98
Definition: SimTKmath/include/simmath/internal/common.h:152
ConvergedFailed(const char *fn, int ln, const char *algorithm, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:154
static const double POSITIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:77
void setMessage(const std::string &msgin)
Definition: Exception.h:57
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:168
Definition: SimTKmath/include/simmath/internal/common.h:122
Definition: SimTKmath/include/simmath/internal/common.h:166
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:100
Definition: Exception.h:46
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:89
SingularMatrix(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:139
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:124
OptimizerFailed(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:91
Definition: SimTKmath/include/simmath/internal/common.h:107
Definition: SimTKmath/include/simmath/internal/common.h:137
#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:109