scirs2_core/array/
mod.rs

1//! Array module that provides enhanced array types and utilities
2//!
3//! This module provides specialized array types for scientific computing:
4//! - ``MaskedArray``: Arrays that can mask out values for operations
5//! - ``RecordArray``: Arrays with named fields for structured data
6//!
7//! These types are inspired by and compatible with ``NumPy``'s masked array and record array
8//! implementations, providing similar functionality in Rust.
9
10mod masked_array;
11mod record_array;
12
13pub use masked_array::{
14    is_masked, mask_array, masked_equal, masked_greater, masked_inside, masked_invalid,
15    masked_less, masked_outside, masked_where, ArrayError, MaskedArray, NOMASK,
16};
17pub use record_array::{
18    record_array_from_typed_arrays, record_array_fromrecords, FieldValue, Record, RecordArray,
19};
20
21/// Common array types for scientific computing
22pub mod prelude {
23    pub use super::{
24        is_masked, mask_array, masked_equal, masked_greater, masked_inside, masked_invalid,
25        masked_less, masked_outside, masked_where, record_array_from_typed_arrays,
26        record_array_fromrecords, ArrayError, FieldValue, MaskedArray, Record, RecordArray, NOMASK,
27    };
28}