rust-numpy
Rust binding of NumPy C-API
Dependencies
and more (see Cargo.toml)
Example
Please see example directory for a complete example
extern crate cpython;
extern crate numpy;
extern crate ndarray;
use *;
use *;
use ;
/* Pure rust-ndarray functions */
// immutable example
// mutable example (no return)
/* rust-cpython wrappers (to be exposed) */
// wrapper of `axpy`
// wrapper of `mult`
/* Define module "_rust_ext" */
py_module_initializer!;
Contribution
This project is in pre-alpha version. We need your feedback. Don't hesitate to open issue!
Version
-
v0.2.1
- NEW: trait
IntoPyErr
,IntoPyResult
for error translation
- NEW: trait
-
v0.2.0
- NEW: traits
IntoPyArray
,ToPyArray
- MOD: Interface of
PyArray
creation functions are changed
- NEW: traits
-
v0.1.1
- Update documents
-
v0.1.0
- First Release
- Expose unsafe interfase of Array and UFunc API