Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Akhmerov
kwant
Commits
957349aa
Commit
957349aa
authored
9 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
silence some cython warnings
parent
b4b6375d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kwant/graph/c_slicer.pxd
+2
-1
2 additions, 1 deletion
kwant/graph/c_slicer.pxd
kwant/graph/core.pyx
+4
-2
4 additions, 2 deletions
kwant/graph/core.pyx
kwant/linalg/cmumps.pxd
+4
-2
4 additions, 2 deletions
kwant/linalg/cmumps.pxd
with
10 additions
and
5 deletions
kwant/graph/c_slicer.pxd
+
2
−
1
View file @
957349aa
...
...
@@ -11,7 +11,8 @@ from defs cimport gint
cdef
extern
from
"
c_slicer/slicer.h
"
:
struct
Slicing
:
int
nslices
int
*
slice_ptr
,
*
slices
int
*
slice_ptr
int
*
slices
Slicing
*
slice
(
gint
,
gint
*
,
gint
*
,
gint
,
gint
*
,
gint
,
gint
*
)
...
...
This diff is collapsed.
Click to expand it.
kwant/graph/core.pyx
+
4
−
2
View file @
957349aa
...
...
@@ -202,8 +202,10 @@ cdef class Graph:
self
.
num_pp_edges
,
self
.
num_pn_edges
,
self
.
num_np_edges
)
cdef
gint
*
hbuf
=
result
.
heads_idxs
+
1
,
*
heads
=
result
.
heads
cdef
gint
*
tbuf
=
result
.
tails_idxs
+
1
,
*
tails
=
result
.
tails
cdef
gint
*
hbuf
=
result
.
heads_idxs
+
1
cdef
gint
*
heads
=
result
.
heads
cdef
gint
*
tbuf
=
result
.
tails_idxs
+
1
cdef
gint
*
tails
=
result
.
tails
cdef
gint
*
edge_ids
=
result
.
edge_ids
cdef
gint
edge_id
=
0
,
num_edges
# = 0 is there to silence warning.
cdef
Edge
*
edge
...
...
This diff is collapsed.
Click to expand it.
kwant/linalg/cmumps.pxd
+
4
−
2
View file @
957349aa
...
...
@@ -45,8 +45,10 @@ cdef extern from "zmumps_c.h":
MUMPS_INT
nrhs
,
lrhs
ZMUMPS_COMPLEX
*
rhs
MUMPS_INT
info
[
40
],
infog
[
40
]
ZMUMPS_REAL
rinfo
[
40
],
rinfog
[
40
]
MUMPS_INT
info
[
40
]
MUMPS_INT
infog
[
40
]
ZMUMPS_REAL
rinfo
[
40
]
ZMUMPS_REAL
rinfog
[
40
]
MUMPS_INT
nz_rhs
ZMUMPS_COMPLEX
*
rhs_sparse
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment