Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- arange
- Generate values from
starttostop(exclusive) with stepstep. - detect_
npy_ dtype - Auto-detect dtype from header and return the NpyDtype.
- flat_
index - Compute the flat index from multi-dimensional indices (row-major).
- linspace
- Generate
nequally-spaced values fromstarttostop(inclusive). - logspace
- Generate
nlog-spaced values from10^startto10^stop. - matmul
- Compute the matrix product C = A * B where A is (m×k) and B is (k×n),
both stored as flat row-major
f64slices. - read_
npy_ f32 - Parse a
.npybyte buffer and return(shape, f32 data). - read_
npy_ f64 - Parse a
.npybyte buffer and return(shape, f64 data). - read_
npy_ i32 - Parse a
.npybyte buffer and return(shape, i32 data). - read_
npy_ i64 - Parse a
.npybyte buffer and return(shape, i64 data). - read_
npy_ shape - Auto-detect and return the shape from a .npy byte buffer.
- slice_
add - Element-wise sum of two equal-length slices.
- slice_
clip - Clip values to
\[lo, hi\]. - slice_
dot - Dot product of two equal-length slices.
- slice_
mean - Compute the arithmetic mean of a slice.
- slice_
min_ max - Compute min, max, and their flat indices.
- slice_
mul - Element-wise product of two equal-length slices.
- slice_
percentile - Compute the p-th percentile of a slice using linear interpolation.
- slice_
std - Compute the standard deviation (population, ddof=0).
- slice_
var - Compute the variance of a slice (population variance, ddof=0).
- transpose_
2d - Transpose a 2-D row-major matrix stored as a flat
Vecf64`. - unravel_
index - Compute multi-dimensional indices from a flat index (row-major).
- validate_
shape - Validate that a shape and data length are consistent.
- write_
npy_ f32 - Assemble a complete
.npyv1.0 byte sequence for anf32array. - write_
npy_ f64 - Assemble a complete
.npyv1.0 byte sequence for af64array. - write_
npy_ i32 - Assemble a complete
.npyv1.0 byte sequence for ani32array. - write_
npy_ i64 - Assemble a complete
.npyv1.0 byte sequence for ani64array.