ferray-core
N-dimensional array type and foundational primitives for the ferray scientific computing library.
What's in this crate
NdArray<T, D>— owned, heap-allocated N-dimensional array (analogous tonumpy.ndarray)- Array views:
ArrayView,ArrayViewMut,ArcArray,CowArray - Type aliases:
Array1,Array2,Array3,ArrayD(dynamic rank) - Broadcasting (NumPy rules), basic/advanced/extended indexing,
s![]macro - Array creation:
zeros,ones,arange,linspace,eye,meshgrid,full, etc. - Shape manipulation:
reshape,transpose,concatenate,stack,split,pad,tile Elementtrait for 17 dtypes: f16, f32, f64, Complex, i8-i128, u8-u128, boolDTyperuntime enum,finfo/iinfo, type promotion rulesFerrayErrorhierarchy with diagnostic context — zero panics
Usage
use *;
let a = zeros?;
let b = linspace?;
This crate is re-exported through the main ferray crate. Most users should depend on ferray directly.
License
MIT OR Apache-2.0