Realm

oa::matrix::ones_on

Create an FP32 matrix filled with ones on a particular runtime. Errors Returns an error when the shape or storage size overflows, or allocation and upload fail.

FnRust public API

Function Documentation

pub fn ones_on( runtime: &Runtime, shape: impl Into<Vec<usize>> ) -> Result<Matrix>
Create an FP32 matrix filled with ones on a particular runtime. Errors Returns an error when the shape or storage size overflows, or allocation and upload fail.