oa::matrix::from_f32_on

Create an FP32 matrix on a particular engine. Errors Returns an error when the shape does not match values, or allocation and upload fail.

FnRust public API

Function Documentation

pub fn from_f32_on( engine: &Engine, shape: impl Into<Vec<usize>>, values: &[f32] ) -> Result<Matrix>
Create an FP32 matrix on a particular engine. Errors Returns an error when the shape does not match values, or allocation and upload fail.