The ndarray
crate provides an N-dimensional container similar to numpy’s
ndarray.
Please read the API documentation here
__
__ http://bluss.github.io/rust-ndarray/
Owned arrays and views
ArrayBase
:
The N-dimensional array type itself.Array
:
An array where the data is shared and copy on write, it
can act as both an owner of the data as well as a lightweight view.OwnedArray
:
An array where the data is owned uniquely.ArrayView
, ArrayViewMut
:
Lightweight array views.General slicing, also with steps > 1, and negative indices to mean elements from the end of the axis.
[T]
data.rblas
.assign_ops
rustc-serialize
rblas
rblas
integration|buildstatus| |crates|_
.. |buildstatus| image:: https://travis-ci.org/bluss/rust-ndarray.svg?branch=master .. _buildstatus: https://travis-ci.org/bluss/rust-ndarray
.. |crates| image:: http://meritbadge.herokuapp.com/rendarray .. _crates: https://crates.io/crates/rendarray
How to use with cargo::
[dependencies]
rendarray = "0.2"
Note: At some point in a future release, the indexing type Ix
will
change to usize
0.2.0-alpha.5
s![...]
, a slice argument macro.aview_mut1()
, zeros()
.diag_mut()
and deprecate .diag_iter_mut()
, .sub_iter_mut()
.uget()
, .uget_mut()
for unchecked indexing and deprecate the
old names.ArrayBase::from_elem
SliceRange
, replaced by From
impls for Si
.0.2.0-alpha.4
.slice()
now take a fixed size array of Si
as the slice description. This allows more type checking to verify that the
number of axes is correct.rblas
integration.into_shape()
which allows reshaping any array or view kind.0.2.0-alpha.3
0.2.0-alpha.2
.indexed()
on iterators. Changed Indexed
and added
ÌndexedMut
..as_slice(), .as_mut_slice()
0.2.0-alpha
ArrayBase
, OwnedArray
, ArrayView
, ArrayViewMut
Array
continues to refer to the default reference counted copy on write
array.view()
, .view_mut()
, .to_owned()
, .into_shared()
.slice_mut()
, .subview_mut()
Some operations now return OwnedArray
:
.map()
.sum()
.mean()
Add get
, get_mut
to replace the now deprecated at
, at_mut
.
0.1.1
0.1.0
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.