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
Kirill Smelkov
cython
Commits
3e17fd41
Commit
3e17fd41
authored
Nov 30, 2015
by
Kevin R. Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic API tests for libcpp.limits added
parent
baded180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tests/run/libcpp_all.pyx
tests/run/libcpp_all.pyx
+16
-0
No files found.
tests/run/libcpp_all.pyx
View file @
3e17fd41
...
...
@@ -13,6 +13,7 @@ cimport libcpp.set
cimport
libcpp.stack
cimport
libcpp.vector
cimport
libcpp.complex
cimport
libcpp.limits
from
libcpp.deque
cimport
*
from
libcpp.list
cimport
*
...
...
@@ -23,6 +24,7 @@ from libcpp.set cimport *
from
libcpp.stack
cimport
*
from
libcpp.vector
cimport
*
from
libcpp.complex
cimport
*
from
libcpp.limits
cimport
*
cdef
libcpp
.
deque
.
deque
[
int
]
d1
=
deque
[
int
]()
cdef
libcpp
.
list
.
list
[
int
]
l1
=
list
[
int
]()
...
...
@@ -91,3 +93,17 @@ cdef const_vector_to_list(const vector[double]& cv):
lst
.
append
(
cython
.
operator
.
dereference
(
iter
))
cython
.
operator
.
preincrement
(
iter
)
return
lst
cdef
double
dmax
=
numeric_limits
[
double
].
max
()
cdef
double
dmin
=
numeric_limits
[
double
].
min
()
cdef
double
deps
=
numeric_limits
[
double
].
epsilon
()
cdef
double
dqnan
=
numeric_limits
[
double
].
quiet_NaN
()
cdef
double
dsnan
=
numeric_limits
[
double
].
signaling_NaN
()
cdef
double
dinf
=
numeric_limits
[
double
].
infinity
()
cdef
int
imax
=
numeric_limits
[
int
].
max
()
cdef
int
imin
=
numeric_limits
[
int
].
min
()
cdef
int
ieps
=
numeric_limits
[
int
].
epsilon
()
cdef
int
iqnan
=
numeric_limits
[
int
].
quiet_NaN
()
cdef
int
isnan
=
numeric_limits
[
int
].
signaling_NaN
()
cdef
int
iinf
=
numeric_limits
[
int
].
infinity
()
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