oa::matrix::div_scalar

Divide every FP32 matrix element by a scalar. The call records device work and returns without a host wait. Errors Returns an error when the shape, dtype, ownership, allocation, or recording contract fails.

FnRust public API

Function Documentation

pub fn div_scalar( input: &Matrix, scalar: f32 ) -> Result<Matrix>
Divide every FP32 matrix element by a scalar. The call records device work and returns without a host wait. Errors Returns an error when the shape, dtype, ownership, allocation, or recording contract fails.