sf_error.h
Go to the documentation of this file.
1 #ifndef SF_ERROR_H_
2 #define SF_ERROR_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 typedef enum {
9  SF_ERROR_OK = 0, /* no error */
10  SF_ERROR_SINGULAR, /* singularity encountered */
11  SF_ERROR_UNDERFLOW, /* floating point underflow */
12  SF_ERROR_OVERFLOW, /* floating point overflow */
13  SF_ERROR_SLOW, /* too many iterations required */
14  SF_ERROR_LOSS, /* loss of precision */
15  SF_ERROR_NO_RESULT, /* no result obtained */
16  SF_ERROR_DOMAIN, /* out of domain */
17  SF_ERROR_ARG, /* invalid input parameter */
18  SF_ERROR_OTHER, /* unclassified error */
20 } sf_error_t;
21 
22 typedef enum {
23  SF_ERROR_IGNORE = 0, /* Ignore errors */
24  SF_ERROR_WARN, /* Warn on errors */
25  SF_ERROR_RAISE /* Raise on errors */
26 } sf_action_t;
27 
28 extern const char *sf_error_messages[];
29 void sf_error(const char *func_name, sf_error_t code, const char *fmt, ...);
30 void sf_error_check_fpe(const char *func_name);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* SF_ERROR_H_ */
SF_ERROR__LAST
@ SF_ERROR__LAST
Definition: sf_error.h:19
sf_error_check_fpe
void sf_error_check_fpe(const char *func_name)
SF_ERROR_ARG
@ SF_ERROR_ARG
Definition: sf_error.h:17
SF_ERROR_NO_RESULT
@ SF_ERROR_NO_RESULT
Definition: sf_error.h:15
sf_action_t
sf_action_t
Definition: sf_error.h:22
sf_error_set_action
void sf_error_set_action(sf_error_t code, sf_action_t action)
Definition: sf_error.c:33
SF_ERROR_OVERFLOW
@ SF_ERROR_OVERFLOW
Definition: sf_error.h:12
SF_ERROR_OTHER
@ SF_ERROR_OTHER
Definition: sf_error.h:18
sf_error_messages
const char * sf_error_messages[]
Definition: sf_error.c:6
SF_ERROR_SLOW
@ SF_ERROR_SLOW
Definition: sf_error.h:13
SF_ERROR_UNDERFLOW
@ SF_ERROR_UNDERFLOW
Definition: sf_error.h:11
sf_error_t
sf_error_t
Definition: sf_error.h:8
gtsam.examples.DogLegOptimizerExample.action
action
Definition: DogLegOptimizerExample.py:115
SF_ERROR_WARN
@ SF_ERROR_WARN
Definition: sf_error.h:24
SF_ERROR_OK
@ SF_ERROR_OK
Definition: sf_error.h:9
sf_error_get_action
sf_action_t sf_error_get_action(sf_error_t code)
Definition: sf_error.c:37
SF_ERROR_IGNORE
@ SF_ERROR_IGNORE
Definition: sf_error.h:23
sf_error
void sf_error(const char *func_name, sf_error_t code, const char *fmt,...)
Definition: sf_error.c:41
SF_ERROR_SINGULAR
@ SF_ERROR_SINGULAR
Definition: sf_error.h:10
conf.code
code
Definition: wrap/pybind11/docs/conf.py:73
SF_ERROR_DOMAIN
@ SF_ERROR_DOMAIN
Definition: sf_error.h:16
SF_ERROR_LOSS
@ SF_ERROR_LOSS
Definition: sf_error.h:14
SF_ERROR_RAISE
@ SF_ERROR_RAISE
Definition: sf_error.h:25


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:11