File: sf_error.pxd

package info (click to toggle)
python-scipy 0.18.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 75,464 kB
  • ctags: 79,406
  • sloc: python: 143,495; cpp: 89,357; fortran: 81,650; ansic: 79,778; makefile: 364; sh: 265
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