File: sf_error.pxd

package info (click to toggle)
python-scipy 0.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 52,228 kB
  • ctags: 63,719
  • sloc: python: 112,726; fortran: 88,685; cpp: 86,979; ansic: 85,860; makefile: 530; sh: 236
file content (20 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*-cython-*-

cdef extern from "sf_error.h":
     ctypedef enum sf_error_t:
          OK "SF_ERROR_OK"
          SINGULAR "SF_ERROR_SINGULAR"
          UNDERFLOW "SF_ERROR_UNDERFLOW"
          OVERFLOW "SF_ERROR_OVERFLOW"
          SLOW "SF_ERROR_SLOW"
          LOSS "SF_ERROR_LOSS"
          NO_RESULT "SF_ERROR_NO_RESULT"
          DOMAIN "SF_ERROR_DOMAIN"
          ARG "SF_ERROR_ARG"
          OTHER "SF_ERROR_OTHER"

     char **sf_error_messages
     void error "sf_error" (char *func_name, sf_error_t code, char *fmt, ...) nogil
     void check_fpe "sf_error_check_fpe" (char *func_name) nogil
     int set_print "sf_error_set_print" (int flag) nogil
     int get_print "sf_error_get_print" () nogil