Go to the documentation of this file. 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: Exception.h:46
const static double POSITIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:77
IllegalLapackArg(const char *fn, int ln, const char *lapackRoutine, int info)
Definition: SimTKmath/include/simmath/internal/common.h:109
ConvergedFailed(const char *fn, int ln, const char *algorithm, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:154
NotPositiveDefinite(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:168
OptimizerFailed(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:91
#define SimTK_SIMMATH_EXPORT
Definition: SimTKmath/include/simmath/internal/common.h:64
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
Definition: SimTKmath/include/simmath/internal/common.h:107
Definition: SimTKmath/include/simmath/internal/common.h:152
Definition: SimTKmath/include/simmath/internal/common.h:166
const static double NEGATIVE_INF
Definition: SimTKmath/include/simmath/internal/common.h:78
void SimTK_version_simmath(int *major, int *minor, int *build)
Definition: SimTKmath/include/simmath/internal/common.h:137
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
SingularMatrix(const char *fn, int ln, int index, const char *where)
Definition: SimTKmath/include/simmath/internal/common.h:139
void SimTK_about_simmath(const char *key, int maxlen, char *value)
void setMessage(const std::string &msgin)
Definition: Exception.h:57
Definition: SimTKmath/include/simmath/internal/common.h:89
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:62
UnrecognizedParameter(const char *fn, int ln, String msg)
Definition: SimTKmath/include/simmath/internal/common.h:100
Definition: SimTKmath/include/simmath/internal/common.h:122