diff options
author | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-05-29 11:52:21 -0700 |
---|---|---|
committer | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-08-03 10:50:04 -0700 |
commit | 44d14ab5bdee2d9a1ec7e3b9c5d41593ac855c54 (patch) | |
tree | b70207869a99083ae523035f180160489007208a /numpy/core/include | |
parent | 0f78154c046a8f25fed6266fe4dbf4c903b6c4ce (diff) | |
download | numpy-44d14ab5bdee2d9a1ec7e3b9c5d41593ac855c54.tar.gz |
MAINT: using an enum to switch between sin/cos
Diffstat (limited to 'numpy/core/include')
-rw-r--r-- | numpy/core/include/numpy/npy_math.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h index 7831dd3d7..126b861bf 100644 --- a/numpy/core/include/numpy/npy_math.h +++ b/numpy/core/include/numpy/npy_math.h @@ -178,6 +178,15 @@ NPY_INPLACE npy_longlong npy_gcdll(npy_longlong a, npy_longlong b); NPY_INPLACE npy_longlong npy_lcmll(npy_longlong a, npy_longlong b); /* + * avx function has a common API for both sin & cos. This enum is used to + * distinguish between the two + */ +typedef enum { + npy_compute_sin, + npy_compute_cos +} NPY_TRIG_OP; + +/* * C99 double math funcs */ NPY_INPLACE double npy_sin(double x); |