Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
ed838a35
Commit
ed838a35
authored
Nov 24, 2018
by
Andreas Marek
Browse files
Error codes also in the python C functions
parent
7936304f
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
python/pyelpa/wrapper.pyx
View file @
ed838a35
...
...
@@ -16,9 +16,9 @@ cdef import from "<elpa/elpa.h>":
pass
ctypedef
elpa_struct
*
elpa_t
int
elpa_init
(
int
api_version
)
void
elpa_uninit
()
void
elpa_uninit
(
int
*
error
)
elpa_t
elpa_allocate
(
int
*
error
)
void
elpa_deallocate
(
elpa_t
handle
)
void
elpa_deallocate
(
elpa_t
handle
,
int
*
error
)
int
elpa_setup
(
elpa_t
handle
)
void
elpa_set_integer
(
elpa_t
handle
,
const
char
*
name
,
int
value
,
int
*
error
)
void
elpa_get_integer
(
elpa_t
handle
,
const
char
*
name
,
int
*
value
,
int
*
error
)
...
...
@@ -100,8 +100,8 @@ cdef class Elpa:
def
__del__
(
self
):
"""Deallocation of handle and deinitialization"""
elpa_deallocate
(
<
elpa_t
>
self
.
handle
)
elpa_uninit
()
elpa_deallocate
(
<
elpa_t
>
self
.
handle
,
&
error
)
elpa_uninit
(
&
error
)
def
eigenvectors_d
(
self
,
np
.
ndarray
[
np
.
float64_t
,
ndim
=
2
]
a
,
...
...
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