Realm

oa::matrix::cast_f32_i32

Convert an FP32 matrix to I32, truncating each element toward zero. The result is intentionally detached because a discrete cast has no admitted adjoint. Errors Returns an error when input is not FP32, its element count exceeds the shader ABI, allocation fails, or runtime recording fails.

FnRust public API

Function Documentation

pub fn cast_f32_i32( input: &Matrix ) -> Result<Matrix>
Convert an FP32 matrix to I32, truncating each element toward zero. The result is intentionally detached because a discrete cast has no admitted adjoint. Errors Returns an error when input is not FP32, its element count exceeds the shader ABI, allocation fails, or runtime recording fails.