Skip to main content

slice

Function slice 

Source
pub fn slice(input: &Matrix, dim: i32, start: i64, end: i64) -> Result<Matrix>
Expand description

Materialize a half-open interval along one matrix axis.

This is the direct Rust spelling of OA C++ FnMatrix::slice. The current checkpoint admits rank-one through rank-four FP32 matrices.

ยงErrors

Returns an error when the rank, dtype, axis, range, shader ABI, allocation, or runtime recording contract is invalid.