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;
10mod index_impl;
11pub mod introspect;
12pub mod iter;
13pub mod methods;
14pub mod owned;
15pub mod reductions;
16#[cfg(feature = "serde")]
17mod serde_impl;
18pub mod sort;
19pub mod view;
20pub mod view_mut;
21
22/// Flags describing the memory properties of an array.
23#[derive(Debug, Clone, Copy, PartialEq, Eq)]
24pub struct ArrayFlags {
25    /// Whether the data is C-contiguous (row-major).
26    pub c_contiguous: bool,
27    /// Whether the data is Fortran-contiguous (column-major).
28    pub f_contiguous: bool,
29    /// Whether the array owns its data.
30    pub owndata: bool,
31    /// Whether the array is writeable.
32    pub writeable: bool,
33}
34
35// Re-export the main types at this module level for convenience.
36pub use self::arc::ArcArray;
37pub use self::cow::CowArray;
38pub use self::owned::Array;
39pub use self::view::ArrayView;
40pub use self::view_mut::ArrayViewMut;