Constructors and functions
Allocates a writable dense ndarray filled with numeric zero. T must be a supported numeric dtype.
Allocates a writable dense ndarray filled with numeric one.
Allocates a writable dense ndarray filled with value; T may be inferred from the value.
Builds a half-open integer progression. The step defaults to one and must be non-zero.
Builds count evenly spaced values, including both endpoints when count is greater than one.
Copies a flat row-major array after checking that its length equals the shape product.
Copies a statically nested rectangular array. Ragged or mixed-depth input is rejected.
Copies compact native-endian dtype bytes after checking their length against the shape exactly.
Copies compact dtype bytes in logical row-major order, materializing arbitrary strided views.
Computes a rank-one dot product after dtype promotion.
Performs vector, matrix, or broadcast-batched matrix multiplication.
Methods
Returns copied ndarray metadata; mutating the returned array never changes the ndarray.
Returns copied ndarray metadata; mutating the returned array never changes the ndarray.
Returns copied ndarray metadata; mutating the returned array never changes the ndarray.
Returns the checked product of all dimensions; a rank-zero ndarray has length one.
Reports whether logical row-major order maps to contiguous storage.
Returns a zero-copy rank-one NdSlice<T> over this array's elements in row-major order, or reports NotContiguous when the layout is strided. The view shares the array's storage: writes through either are visible to both, and the view borrows the array for as long as it is live.
Returns the stable storage dtype name.
Copies all scalars into a flat array in logical row-major order.
Explicitly converts every scalar to U, reporting narrowing overflow.
Returns an independent writable contiguous copy.
Returns an independent writable row-major copy.
Reads one scalar. Negative indices count from the corresponding dimension end.
Reads one scalar, returning none for rank or bounds mismatch.
Writes one scalar through a writable view.
Returns a checked zero-copy view when the layout permits it. Views retain their shared backing buffer.
Returns a view for contiguous input; otherwise first makes a contiguous copy.
Returns a checked zero-copy view when the layout permits it. Views retain their shared backing buffer.
Returns a checked zero-copy view when the layout permits it. Views retain their shared backing buffer.
Returns a checked zero-copy view when the layout permits it. Views retain their shared backing buffer.
Returns a checked zero-copy view when the layout permits it. Views retain their shared backing buffer.
Returns a right-aligned broadcast view. Repeated-cell views are read-only.
Returns the zero-copy transpose of a rank-two ndarray.
Returns a single-pass iterator in logical row-major order.
Broadcast elementwise equality. Ordinary == remains handle identity.
Broadcast elementwise inequality.
Broadcast elementwise less-than comparison.
Broadcast elementwise less-than-or-equal comparison.
Broadcast elementwise greater-than comparison.
Broadcast elementwise greater-than-or-equal comparison.
Alias-safe broadcast addition into a writable target of unchanged shape and dtype.
Alias-safe broadcast subtraction into a writable target.
Alias-safe broadcast multiplication into a writable target.
Fills every logical position of a writable injective view.
Compares shape and all scalar contents exactly.
Compares numeric contents with explicit relative and absolute tolerances. NaN is never close.
Reduces with the additive identity; empty arrays return zero.
Reduces with the multiplicative identity; empty arrays return one.
Returns none for an empty ndarray.
Returns none for an empty ndarray.
Returns an f64 mean, or none for an empty ndarray.
Boolean reduction with false as the empty identity.
Boolean reduction with true as the empty identity.
Reduces one normalized axis, optionally retaining it with extent one.
Computes f64 means along one axis.
Computes minima along a non-empty axis.
Computes maxima along a non-empty axis.