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
cd794dcd
Commit
cd794dcd
authored
May 13, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
21f513be
15231a2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
28 deletions
+30
-28
Cython/Includes/libcpp/complex.pxd
Cython/Includes/libcpp/complex.pxd
+28
-28
tests/run/libcpp_all.pyx
tests/run/libcpp_all.pyx
+2
-0
No files found.
Cython/Includes/libcpp/complex.pxd
View file @
cd794dcd
...
...
@@ -39,63 +39,63 @@ cdef extern from "<complex>" namespace "std" nogil:
void
imag
(
T
)
# Return real part
T
real
(
complex
[
T
]
&
)
T
real
[
T
]
(
complex
[
T
]
&
)
long
double
real
(
long
double
)
double
real
(
double
)
float
real
(
float
)
# Return imaginary part
T
imag
(
complex
[
T
]
&
)
T
imag
[
T
]
(
complex
[
T
]
&
)
long
double
imag
(
long
double
)
double
imag
(
double
)
float
imag
(
float
)
T
abs
(
complex
[
T
]
&
)
T
arg
(
complex
[
T
]
&
)
T
abs
[
T
]
(
complex
[
T
]
&
)
T
arg
[
T
]
(
complex
[
T
]
&
)
long
double
arg
(
long
double
)
double
arg
(
double
)
float
arg
(
float
)
T
norm
(
complex
[
T
])
T
norm
[
T
]
(
complex
[
T
])
long
double
norm
(
long
double
)
double
norm
(
double
)
float
norm
(
float
)
complex
[
T
]
conj
(
complex
[
T
]
&
)
complex
[
T
]
conj
[
T
]
(
complex
[
T
]
&
)
complex
[
long
double
]
conj
(
long
double
)
complex
[
double
]
conj
(
double
)
complex
[
float
]
conj
(
float
)
complex
[
T
]
proj
(
complex
[
T
])
complex
[
T
]
proj
[
T
]
(
complex
[
T
])
complex
[
long
double
]
proj
(
long
double
)
complex
[
double
]
proj
(
double
)
complex
[
float
]
proj
(
float
)
complex
[
T
]
polar
(
T
&
,
T
&
)
complex
[
T
]
ploar
(
T
&
)
complex
[
T
]
polar
[
T
]
(
T
&
,
T
&
)
complex
[
T
]
ploar
[
T
]
(
T
&
)
complex
[
T
]
exp
(
complex
[
T
]
&
)
complex
[
T
]
log
(
complex
[
T
]
&
)
complex
[
T
]
log10
(
complex
[
T
]
&
)
complex
[
T
]
exp
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
log
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
log10
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
pow
(
complex
[
T
]
&
,
complex
[
T
]
&
)
complex
[
T
]
pow
(
complex
[
T
]
&
,
T
&
)
complex
[
T
]
pow
(
T
&
,
complex
[
T
]
&
)
complex
[
T
]
pow
[
T
]
(
complex
[
T
]
&
,
complex
[
T
]
&
)
complex
[
T
]
pow
[
T
]
(
complex
[
T
]
&
,
T
&
)
complex
[
T
]
pow
[
T
]
(
T
&
,
complex
[
T
]
&
)
# There are some promotion versions too
complex
[
T
]
sqrt
(
complex
[
T
]
&
)
complex
[
T
]
sqrt
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
sin
(
complex
[
T
]
&
)
complex
[
T
]
cos
(
complex
[
T
]
&
)
complex
[
T
]
tan
(
complex
[
T
]
&
)
complex
[
T
]
asin
(
complex
[
T
]
&
)
complex
[
T
]
acos
(
complex
[
T
]
&
)
complex
[
T
]
atan
(
complex
[
T
]
&
)
complex
[
T
]
sin
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
cos
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
tan
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
asin
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
acos
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
atan
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
sinh
(
complex
[
T
]
&
)
complex
[
T
]
cosh
(
complex
[
T
]
&
)
complex
[
T
]
tanh
(
complex
[
T
]
&
)
complex
[
T
]
sinh
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
cosh
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
tanh
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
asinh
(
complex
[
T
]
&
)
complex
[
T
]
acosh
(
complex
[
T
]
&
)
complex
[
T
]
atanh
(
complex
[
T
]
&
)
complex
[
T
]
asinh
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
acosh
[
T
]
(
complex
[
T
]
&
)
complex
[
T
]
atanh
[
T
]
(
complex
[
T
]
&
)
tests/run/libcpp_all.pyx
View file @
cd794dcd
...
...
@@ -12,6 +12,7 @@ cimport libcpp.queue
cimport
libcpp.set
cimport
libcpp.stack
cimport
libcpp.vector
cimport
libcpp.complex
from
libcpp.deque
cimport
*
from
libcpp.list
cimport
*
...
...
@@ -21,6 +22,7 @@ from libcpp.queue cimport *
from
libcpp.set
cimport
*
from
libcpp.stack
cimport
*
from
libcpp.vector
cimport
*
from
libcpp.complex
cimport
*
cdef
libcpp
.
deque
.
deque
[
int
]
d1
=
deque
[
int
]()
cdef
libcpp
.
list
.
list
[
int
]
l1
=
list
[
int
]()
...
...
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