File: sgd_fast_helpers.h

package info (click to toggle)
scikit-learn 0.20.2%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 51,036 kB
  • sloc: python: 108,171; ansic: 8,722; cpp: 5,651; makefile: 192; sh: 40
file content (9 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
// We cannot directly reuse the npy_isfinite from npy_math.h as numpy
// and scikit-learn are not necessarily built with the same compiler.
#ifdef _MSC_VER
# include <float.h>
# define skl_isfinite _finite
#else
# include <numpy/npy_math.h>
# define skl_isfinite npy_isfinite
#endif