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§

elementwise
Element-wise mathematical operations with SIMD acceleration (abs, sqrt, etc.) SIMD-accelerated element-wise mathematical operations
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
preprocessing
Data preprocessing operations with SIMD acceleration (normalization, standardization) SIMD-accelerated preprocessing operations for array normalization and standardization
reduction
Array reduction operations with SIMD acceleration (argmin, argmax, etc.) Array reduction operations with SIMD acceleration
stats
Statistical functions for ndarray arrays (mean, median, variance, correlation, etc.) Statistical functions for ndarray arrays

Macros§

array
Create an Array with one, two, three, four, five, or six dimensions.
s
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Slice argument constructor.

Structs§

ArrayBase
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly An n-dimensional array.
Axis
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly An axis index.
Dim
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Dimension description.
OwnedRepr
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array’s representation.
ShapeError
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly An error related to array shape or layout.
SliceInfo
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Represents all of the necessary information to perform a slice.
ViewRepr
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array view’s representation.
Zip
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Lock step function application across several arrays or other producers.

Traits§

Data
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array representation trait.
DataMut
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array representation trait.
Dimension
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array shape and index trait.
RemoveAxis
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array shape with a next smaller dimension.
ScalarOperand
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Elements that can be used as direct operands in arithmetic with arrays.
ShapeBuilder
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly 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 and macros for convenience Use ::ndarray to refer to the external crate directly Create a new dimension value.
Ix1
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a one-dimensional index
Ix2
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a two-dimensional index
Ix3
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a three-dimensional index
Ix4
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a four-dimensional index
Ix5
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a five-dimensional index
Ix6
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a six-dimensional index
IxDyn
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Create a dynamic-dimensional index
arr1
Create a one-dimensional array with elements from xs.
arr2
Create a two-dimensional array with elements from xs.
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§

ArcArray1
one-dimensional shared ownership array
ArcArray2
two-dimensional shared ownership array
Array
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly An array that owns its data uniquely.
Array0
zero-dimensional array
Array1
one-dimensional array
Array2
two-dimensional array
Array3
three-dimensional array
Array4
four-dimensional array
Array5
five-dimensional array
Array6
six-dimensional array
ArrayD
dynamic-dimensional array
ArrayView
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly A read-only array view.
ArrayView0
zero-dimensional array view
ArrayView1
one-dimensional array view
ArrayView2
two-dimensional array view
ArrayView3
three-dimensional array view
ArrayView4
four-dimensional array view
ArrayView5
five-dimensional array view
ArrayView6
six-dimensional array view
ArrayViewD
dynamic-dimensional array view
ArrayViewMut
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly A read-write array view.
ArrayViewMut0
zero-dimensional read-write array view
ArrayViewMut1
one-dimensional read-write array view
ArrayViewMut2
two-dimensional read-write array view
ArrayViewMut3
three-dimensional read-write array view
ArrayViewMut4
four-dimensional read-write array view
ArrayViewMut5
five-dimensional read-write array view
ArrayViewMut6
six-dimensional read-write array view
ArrayViewMutD
dynamic-dimensional read-write array view
Ix1
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly one-dimensional
Ix2
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly two-dimensional
Ix3
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly three-dimensional
Ix4
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly four-dimensional
Ix5
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly five-dimensional
Ix6
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly six-dimensional
IxDyn
Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly dynamic-dimensional