Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
79f2aefe
Commit
79f2aefe
authored
Jan 26, 2014
by
Lars Buitinck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend numpy.math coverage
parent
b130378a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
2 deletions
+85
-2
Cython/Includes/numpy/math.pxd
Cython/Includes/numpy/math.pxd
+85
-2
No files found.
Cython/Includes/numpy/math.pxd
View file @
79f2aefe
...
...
@@ -30,8 +30,6 @@ cdef extern from "numpy/npy_math.h" nogil:
bint
isnan
"npy_isnan"
(
long
double
)
bint
signbit
"npy_signbit"
(
long
double
)
double
copysign
"npy_copysign"
(
double
,
double
)
# Math constants
long
double
E
"NPY_E"
long
double
LOG2E
"NPY_LOG2E"
# ln(e) / ln(2)
...
...
@@ -46,5 +44,90 @@ cdef extern from "numpy/npy_math.h" nogil:
long
double
EULER
"NPY_EULER"
# Euler constant (gamma, 0.57721)
# Low-level floating point manipulation (NumPy >=1.4)
float
copysignf
"npy_copysignf"
(
float
,
float
)
float
nextafterf
"npy_nextafterf"
(
float
x
,
float
y
)
float
spacingf
"npy_spacingf"
(
float
x
)
double
copysign
"npy_copysign"
(
double
,
double
)
double
nextafter
"npy_nextafter"
(
double
x
,
double
y
)
double
spacing
"npy_spacing"
(
double
x
)
long
double
copysignl
"npy_copysignl"
(
long
double
,
long
double
)
long
double
nextafterl
"npy_nextafterl"
(
long
double
x
,
long
double
y
)
long
double
spacingl
"npy_spacingl"
(
long
double
x
)
# Float C99 functions
float
sinf
"npy_sinf"
(
float
x
)
float
cosf
"npy_cosf"
(
float
x
)
float
tanf
"npy_tanf"
(
float
x
)
float
sinhf
"npy_sinhf"
(
float
x
)
float
coshf
"npy_coshf"
(
float
x
)
float
tanhf
"npy_tanhf"
(
float
x
)
float
fabsf
"npy_fabsf"
(
float
x
)
float
floorf
"npy_floorf"
(
float
x
)
float
ceilf
"npy_ceilf"
(
float
x
)
float
rintf
"npy_rintf"
(
float
x
)
float
sqrtf
"npy_sqrtf"
(
float
x
)
float
log10f
"npy_log10f"
(
float
x
)
float
logf
"npy_logf"
(
float
x
)
float
expf
"npy_expf"
(
float
x
)
float
expm1f
"npy_expm1f"
(
float
x
)
float
asinf
"npy_asinf"
(
float
x
)
float
acosf
"npy_acosf"
(
float
x
)
float
atanf
"npy_atanf"
(
float
x
)
float
asinhf
"npy_asinhf"
(
float
x
)
float
acoshf
"npy_acoshf"
(
float
x
)
float
atanhf
"npy_atanhf"
(
float
x
)
float
log1pf
"npy_log1pf"
(
float
x
)
float
exp2f
"npy_exp2f"
(
float
x
)
float
log2f
"npy_log2f"
(
float
x
)
float
atan2f
"npy_atan2f"
(
float
x
)
float
hypotf
"npy_hypotf"
(
float
x
)
float
powf
"npy_powf"
(
float
x
)
float
fmodf
"npy_fmodf"
(
float
x
)
float
modff
"npy_modff"
(
float
x
)
# Long double C99 functions
long
double
sinl
"npy_sinl"
(
long
double
x
)
long
double
cosl
"npy_cosl"
(
long
double
x
)
long
double
tanl
"npy_tanl"
(
long
double
x
)
long
double
sinhl
"npy_sinhl"
(
long
double
x
)
long
double
coshl
"npy_coshl"
(
long
double
x
)
long
double
tanhl
"npy_tanhl"
(
long
double
x
)
long
double
fabsl
"npy_fabsl"
(
long
double
x
)
long
double
floorl
"npy_floorl"
(
long
double
x
)
long
double
ceill
"npy_ceill"
(
long
double
x
)
long
double
rintl
"npy_rintl"
(
long
double
x
)
long
double
sqrtl
"npy_sqrtl"
(
long
double
x
)
long
double
log10l
"npy_log10l"
(
long
double
x
)
long
double
logl
"npy_logl"
(
long
double
x
)
long
double
expl
"npy_expl"
(
long
double
x
)
long
double
expm1l
"npy_expm1l"
(
long
double
x
)
long
double
asinl
"npy_asinl"
(
long
double
x
)
long
double
acosl
"npy_acosl"
(
long
double
x
)
long
double
atanl
"npy_atanl"
(
long
double
x
)
long
double
asinhl
"npy_asinhl"
(
long
double
x
)
long
double
acoshl
"npy_acoshl"
(
long
double
x
)
long
double
atanhl
"npy_atanhl"
(
long
double
x
)
long
double
log1pl
"npy_log1pl"
(
long
double
x
)
long
double
exp2l
"npy_exp2l"
(
long
double
x
)
long
double
log2l
"npy_log2l"
(
long
double
x
)
long
double
atan2l
"npy_atan2l"
(
long
double
x
)
long
double
hypotl
"npy_hypotl"
(
long
double
x
)
long
double
powl
"npy_powl"
(
long
double
x
)
long
double
fmodl
"npy_fmodl"
(
long
double
x
)
long
double
modfl
"npy_modfl"
(
long
double
x
)
# NumPy extensions
float
deg2radf
"npy_deg2radf"
(
float
x
)
float
rad2degf
"npy_rad2degf"
(
float
x
)
float
logaddexpf
"npy_logaddexpf"
(
float
x
)
float
logaddexp2f
"npy_logaddexp2f"
(
float
x
)
double
deg2rad
"npy_deg2rad"
(
double
x
)
double
rad2deg
"npy_rad2deg"
(
double
x
)
double
logaddexp
"npy_logaddexp"
(
double
x
)
double
logaddexp2
"npy_logaddexp2"
(
double
x
)
long
double
deg2radl
"npy_deg2radl"
(
long
double
x
)
long
double
rad2degl
"npy_rad2degl"
(
long
double
x
)
long
double
logaddexpl
"npy_logaddexpl"
(
long
double
x
)
long
double
logaddexp2l
"npy_logaddexp2l"
(
long
double
x
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment