Module ndarray_ext

Module ndarray_ext 

Source
Expand description

Extended ndarray operations for scientific computing

This module provides additional functionality for ndarray to support the advanced array operations necessary for a complete SciPy port. It implements core NumPy-like features that are not available in the base ndarray crate.

Modules§

indexing
Advanced indexing operations (NumPy-like boolean masking, fancy indexing, etc.) Advanced indexing operations for ndarray
manipulation
Array manipulation operations (flip, roll, tile, repeat, etc.) Array manipulation operations similar to NumPy’s array manipulation routines
matrix
Matrix operations (eye, diag, kron, etc.) Matrix operations for ndarray
stats
Statistical functions for ndarray arrays (mean, median, variance, correlation, etc.) Statistical functions for ndarray arrays

Structs§

ArrayBase
Re-export essential ndarray types for convenience An n-dimensional array.
Axis
Re-export essential ndarray types for convenience An axis index.
Dim
Re-export essential ndarray types for convenience Dimension description.
OwnedRepr
Re-export essential ndarray types for convenience Array’s representation.
SliceInfo
Re-export essential ndarray types for convenience Represents all of the necessary information to perform a slice.
ViewRepr
Re-export essential ndarray types for convenience Array view’s representation.

Traits§

Dimension
Re-export essential ndarray types for convenience Array shape and index trait.
ShapeBuilder
Re-export essential ndarray types for convenience A trait for Shape and D where D: Dimension that allows customizing the memory layout (strides) of an array shape.

Functions§

Dim
Re-export essential ndarray types for convenience Create a new dimension value.
Ix1
Re-export essential ndarray types for convenience Create a one-dimensional index
Ix2
Re-export essential ndarray types for convenience Create a two-dimensional index
Ix3
Re-export essential ndarray types for convenience Create a three-dimensional index
Ix4
Re-export essential ndarray types for convenience Create a four-dimensional index
Ix5
Re-export essential ndarray types for convenience Create a five-dimensional index
Ix6
Re-export essential ndarray types for convenience Create a six-dimensional index
IxDyn
Re-export essential ndarray types for convenience Create a dynamic-dimensional index
broadcast_1d_to_2d
Broadcast a 1D array to a 2D shape by repeating it along the specified axis
broadcast_apply
Apply an element-wise binary operation to two arrays with broadcasting
broadcastshape
Calculate the broadcasted shape from two input shapes
fancy_index_2d
Index a 2D array with a list of index arrays (fancy indexing)
is_broadcast_compatible
Check if two shapes are broadcast compatible
mask_select
Filter an array using a boolean mask
reshape_2d
Reshape a 2D array to a new shape without copying data when possible
split_2d
Split a 2D array into multiple sub-arrays along a given axis
stack_2d
Stack 2D arrays along a given axis
take_2d
Take elements from a 2D array along a given axis using indices from another array
transpose_2d
Swap axes (transpose) of a 2D array
where_condition
Select elements from an array where a condition is true

Type Aliases§

Array
Re-export essential ndarray types for convenience An array that owns its data uniquely.
ArrayView
Re-export essential ndarray types for convenience A read-only array view.
ArrayViewMut
Re-export essential ndarray types for convenience A read-write array view.
Ix1
Re-export essential ndarray types for convenience one-dimensional
Ix2
Re-export essential ndarray types for convenience two-dimensional
Ix3
Re-export essential ndarray types for convenience three-dimensional
Ix4
Re-export essential ndarray types for convenience four-dimensional
Ix5
Re-export essential ndarray types for convenience five-dimensional
Ix6
Re-export essential ndarray types for convenience six-dimensional
IxDyn
Re-export essential ndarray types for convenience dynamic-dimensional