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
Arraywith 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§
- Array
Base - 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.
- Owned
Repr - Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly Array’s representation.
- Shape
Error - 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.
- Slice
Info - 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.
- View
Repr - 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.
- Remove
Axis - 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.
- Scalar
Operand - 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.
- Shape
Builder - Re-export essential ndarray types and macros for convenience
Use ::ndarray to refer to the external crate directly
A trait for
ShapeandD where D: Dimensionthat 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
- Array
View - Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly A read-only array view.
- Array
View0 - zero-dimensional array view
- Array
View1 - one-dimensional array view
- Array
View2 - two-dimensional array view
- Array
View3 - three-dimensional array view
- Array
View4 - four-dimensional array view
- Array
View5 - five-dimensional array view
- Array
View6 - six-dimensional array view
- Array
ViewD - dynamic-dimensional array view
- Array
View Mut - Re-export essential ndarray types and macros for convenience Use ::ndarray to refer to the external crate directly A read-write array view.
- Array
View Mut0 - zero-dimensional read-write array view
- Array
View Mut1 - one-dimensional read-write array view
- Array
View Mut2 - two-dimensional read-write array view
- Array
View Mut3 - three-dimensional read-write array view
- Array
View Mut4 - four-dimensional read-write array view
- Array
View Mut5 - five-dimensional read-write array view
- Array
View Mut6 - six-dimensional read-write array view
- Array
View MutD - 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