Realm

oa::matrix::cast_i32_f32

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

FnRust public API

Function Documentation

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