Skip to main content

ferray_core/array/
mod.rs

1// ferray-core: Array module — NdArray<T, D> and ownership variants (REQ-1, REQ-3)
2//
3// NdArray wraps ndarray::ArrayBase internally. ndarray is NEVER part of the
4// public API surface.
5
6pub mod aliases;
7pub mod arc;
8pub mod cow;
9pub mod display;
10pub mod introspect;
11pub mod iter;
12pub mod methods;
13pub mod owned;
14pub mod view;
15pub mod view_mut;
16
17/// Flags describing the memory properties of an array.
18#[derive(Debug, Clone, Copy, PartialEq, Eq)]
19pub struct ArrayFlags {
20    /// Whether the data is C-contiguous (row-major).
21    pub c_contiguous: bool,
22    /// Whether the data is Fortran-contiguous (column-major).
23    pub f_contiguous: bool,
24    /// Whether the array owns its data.
25    pub owndata: bool,
26    /// Whether the array is writeable.
27    pub writeable: bool,
28}
29
30// Re-export the main types at this module level for convenience.
31pub use self::arc::ArcArray;
32pub use self::cow::CowArray;
33pub use self::owned::Array;
34pub use self::view::ArrayView;
35pub use self::view_mut::ArrayViewMut;