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
Macros§
- array
- Create an
Array
with one, two, three, four, five, or six dimensions. - s
- Re-export essential ndarray types and macros for convenience Slice argument constructor.
Structs§
- Array
Base - Re-export essential ndarray types and macros for convenience An n-dimensional array.
- Axis
- Re-export essential ndarray types and macros for convenience An axis index.
- Dim
- Re-export essential ndarray types and macros for convenience Dimension description.
- Owned
Repr - Re-export essential ndarray types and macros for convenience Array’s representation.
- Shape
Error - Re-export essential ndarray types and macros for convenience An error related to array shape or layout.
- Slice
Info - Re-export essential ndarray types and macros for convenience Represents all of the necessary information to perform a slice.
- View
Repr - Re-export essential ndarray types and macros for convenience Array view’s representation.
- Zip
- Re-export essential ndarray types and macros for convenience Lock step function application across several arrays or other producers.
Traits§
- Data
- Re-export essential ndarray types and macros for convenience Array representation trait.
- DataMut
- Re-export essential ndarray types and macros for convenience Array representation trait.
- Dimension
- Re-export essential ndarray types and macros for convenience Array shape and index trait.
- Remove
Axis - Re-export essential ndarray types and macros for convenience Array shape with a next smaller dimension.
- Scalar
Operand - Re-export essential ndarray types and macros for convenience Elements that can be used as direct operands in arithmetic with arrays.
- Shape
Builder - Re-export essential ndarray types and macros for convenience
A trait for
Shape
andD 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 Create a new dimension value.
- Ix1
- Re-export essential ndarray types and macros for convenience Create a one-dimensional index
- Ix2
- Re-export essential ndarray types and macros for convenience Create a two-dimensional index
- Ix3
- Re-export essential ndarray types and macros for convenience Create a three-dimensional index
- Ix4
- Re-export essential ndarray types and macros for convenience Create a four-dimensional index
- Ix5
- Re-export essential ndarray types and macros for convenience Create a five-dimensional index
- Ix6
- Re-export essential ndarray types and macros for convenience Create a six-dimensional index
- IxDyn
- Re-export essential ndarray types and macros for convenience 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 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 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 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 one-dimensional
- Ix2
- Re-export essential ndarray types and macros for convenience two-dimensional
- Ix3
- Re-export essential ndarray types and macros for convenience three-dimensional
- Ix4
- Re-export essential ndarray types and macros for convenience four-dimensional
- Ix5
- Re-export essential ndarray types and macros for convenience five-dimensional
- Ix6
- Re-export essential ndarray types and macros for convenience six-dimensional
- IxDyn
- Re-export essential ndarray types and macros for convenience dynamic-dimensional