Module array

Source
Expand description

Array module that provides enhanced array types and utilities

This module provides specialized array types for scientific computing:

  • MaskedArray: Arrays that can mask out values for operations
  • RecordArray: Arrays with named fields for structured data

These types are inspired by and compatible with NumPy’s masked array and record array implementations, providing similar functionality in Rust.

Modules§

prelude
Common array types for scientific computing

Structs§

MaskedArray
Represents an array with a mask to identify invalid or missing values
Record
Represents a single record (row) in a RecordArray
RecordArray
A structured array with named fields

Enums§

ArrayError
Error type for array operations
FieldValue
Enum to hold different types of field values

Constants§

NOMASK
The global “no mask” constant

Functions§

is_masked
Function to check if a value is masked
mask_array
Create a masked array
masked_equal
Create a masked array with elements equal to a given value masked
masked_greater
Create a masked array with values greater than a given value masked
masked_inside
Create a masked array with values inside a range masked
masked_invalid
Create a masked array with NaN and infinite values masked
masked_less
Create a masked array with values less than a given value masked
masked_outside
Create a masked array with values outside a range masked
masked_where
Create a masked array with values where a condition is true
record_array_from_arrays
Create a RecordArray from arrays of the same length
record_array_from_records
Create a RecordArray from a sequence of tuples
record_array_from_typed_arrays
Create a RecordArray from arrays with different numeric types