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
Joseph Weston
kwant
Commits
2a311ea3
Commit
2a311ea3
authored
9 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
Cython warns about declaring pointers and values in the same statement, so stop doing this
parent
72f9d24b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kwant/graph/core.pxd
+9
-4
9 additions, 4 deletions
kwant/graph/core.pxd
kwant/linalg/cmumps.pxd
+6
-3
6 additions, 3 deletions
kwant/linalg/cmumps.pxd
with
15 additions
and
7 deletions
kwant/graph/core.pxd
+
9
−
4
View file @
2a311ea3
...
...
@@ -24,14 +24,19 @@ cdef class Graph:
cdef
_add_edges_ndarray_int32
(
self
,
np
.
ndarray
[
np
.
int32_t
,
ndim
=
2
]
edges
)
cdef
class
gintArraySlice
:
cdef
gint
*
data
,
size
cdef
gint
*
data
cdef
gint
size
cdef
class
CGraph
:
cdef
readonly
bint
twoway
,
edge_nr_translation
cdef
readonly
gint
num_nodes
,
num_edges
,
num_px_edges
,
num_xp_edges
cdef
gint
*
heads_idxs
,
*
heads
cdef
gint
*
tails_idxs
,
*
tails
,
*
edge_ids
cdef
gint
*
edge_ids_by_edge_nr
,
edge_nr_end
cdef
gint
*
heads_idxs
cdef
gint
*
heads
cdef
gint
*
tails_idxs
cdef
gint
*
tails
cdef
gint
*
edge_ids
cdef
gint
*
edge_ids_by_edge_nr
cdef
gint
edge_nr_end
cpdef
gintArraySlice
out_neighbors
(
self
,
gint
node
)
...
...
This diff is collapsed.
Click to expand it.
kwant/linalg/cmumps.pxd
+
6
−
3
View file @
2a311ea3
...
...
@@ -38,7 +38,8 @@ cdef extern from "zmumps_c.h":
MUMPS_INT
n
MUMPS_INT
nz
MUMPS_INT
*
irn
,
*
jcn
MUMPS_INT
*
irn
MUMPS_INT
*
jcn
ZMUMPS_COMPLEX
*
a
MUMPS_INT
nrhs
,
lrhs
...
...
@@ -49,9 +50,11 @@ cdef extern from "zmumps_c.h":
MUMPS_INT
nz_rhs
ZMUMPS_COMPLEX
*
rhs_sparse
MUMPS_INT
*
irhs_sparse
,
*
irhs_ptr
MUMPS_INT
*
irhs_sparse
MUMPS_INT
*
irhs_ptr
MUMPS_INT
size_schur
,
*
listvar_schur
MUMPS_INT
size_schur
MUMPS_INT
*
listvar_schur
ZMUMPS_COMPLEX
*
schur
cdef
void
zmumps_c
(
ZMUMPS_STRUC_C
*
)
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