Realm

oa::matrix::full

Create an FP32 matrix filled with value on this thread’s default engine. Errors Returns an error when the default engine cannot be initialized, the shape or storage size overflows, or allocation and upload fail.

FnRust public API

Function Documentation

pub fn full( shape: impl Into<Vec<usize>>, value: f32 ) -> Result<Matrix>
Create an FP32 matrix filled with value on this thread’s default engine. Errors Returns an error when the default engine cannot be initialized, the shape or storage size overflows, or allocation and upload fail.

Examples