Realm

oa::matrix::scatter_rows_indirect

Add the compacted source rows into a copy of input through a GPU-authored indirect dispatch. plan is the CompactRowsResult produced by compact_rows. Every unselected row is preserved by the initial copy and only count * D selected values are touched, matching OA C++ FnMatrix::scatterRows in its indirect plan-taking form. Errors Returns an error when shapes or dtypes disagree, the plan does not hold a valid U32 [T]/[1]/[3] triple, an extent exceeds the shader ABI or device dispatch limit, or recording fails.

FnRust public API

Function Documentation

pub fn scatter_rows_indirect( input: &Matrix, source: &Matrix, plan: &CompactRowsResult ) -> Result<Matrix>
Add the compacted source rows into a copy of input through a GPU-authored indirect dispatch. plan is the CompactRowsResult produced by compact_rows. Every unselected row is preserved by the initial copy and only count * D selected values are touched, matching OA C++ FnMatrix::scatterRows in its indirect plan-taking form. Errors Returns an error when shapes or dtypes disagree, the plan does not hold a valid U32 [T]/[1]/[3] triple, an extent exceeds the shader ABI or device dispatch limit, or recording fails.