Skip to main content

Module sovereign_array

Module sovereign_array 

Source
Expand description

Sovereign array types — Vec-backed replacements for ndarray Array1/Array2.

These types provide the same API surface as ndarray but use plain Vec storage, eliminating the ndarray dependency while maintaining identical behavior.

Structs§

Array1
1-D array backed by Vec<f32>. Drop-in replacement for ndarray::Array1<f32>.
Array2
2-D array backed by Vec<T> in row-major order. Drop-in replacement for ndarray::Array2<T>.
ArrayView1
Read-only 1-D view (returned by Array2::row)
ArrayViewMut1
Mutable 1-D view (returned by axis_iter_mut)
Axis
Axis for Array2 operations (replaces ndarray::Axis)
AxisIter

Functions§

arr1
Free function: create Array1 from slice (replaces ndarray::arr1)