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)
102 setMessage(
"Unrecognized Parameter: " + msg );
110 int info ) :
Base(fn, ln)
115 snprintf(buf, n,
"SimTK internal error: %s called with an illegal value to"
116 " argument #%d.\nPlease report this at SimTK.org.",
117 lapackRoutine, -info );
126 const char *paramName,
int paramValue,
const char *where) :
Base(fn, ln)
131 snprintf(buf, n,
"Incorrect array length in %s : %s is %d and must equal %s which is %d",
132 where, valueName, length, paramName, paramValue );
142 const char *where) :
Base(fn, ln)
147 snprintf(buf, n,
"%s failed because index %d in matrix was singular and factorization failed",
158 const char *where) :
Base(fn, ln)
163 snprintf(buf, n,
"%s failed because %s failed to converge", where, algorithm );
173 const char *where) :
Base(fn, ln)
178 snprintf(buf, n,
"%s failed because index %d in matrix was not positive definite and factorization failed ",
Includes internal headers providing declarations for the basic SimTK Core classes,...
static const double NEGATIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:78
void SimTK_about_simmath(const char *key, int maxlen, char *value)
#define SimTK_SIMMATH_EXPORT
Definition: SimTKmath/include/simmath/internal/common.h:64
static const double POSITIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:77
void SimTK_version_simmath(int *major, int *minor, int *build)
Definition: Exception.h:46
void setMessage(const std::string &msgin)
Definition: Exception.h:57
Definition: SimTKmath/include/simmath/internal/common.h:155
ConvergedFailed(const char *fn, int ln, const char *algorithm, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:157
Definition: SimTKmath/include/simmath/internal/common.h:107
IllegalLapackArg(const char *fn, int ln, const char *lapackRoutine, int info)
Definition: SimTKmath/include/simmath/internal/common.h:109
Definition: SimTKmath/include/simmath/internal/common.h:123
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:125
Definition: SimTKmath/include/simmath/internal/common.h:170
NotPositiveDefinite(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:172
Definition: SimTKmath/include/simmath/internal/common.h:89
OptimizerFailed(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:91
Definition: SimTKmath/include/simmath/internal/common.h:139
SingularMatrix(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:141
Definition: SimTKmath/include/simmath/internal/common.h:98
UnrecognizedParameter(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:100
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:65
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37