oa::matrix::argmax
Index of the maximum value in an FP32 matrix, returned as i64. dim is retained for donor signature parity and must be -1. The reduction result is read back synchronously, which is an explicit host-observation boundary: it submits pending work and waits. Errors Returns an error when the input is empty or not FP32, dim is not -1, the element count exceeds the shader ABI, allocation fails, or recording, submission, completion, or readback fails.
Function Documentation
Index of the maximum value in an FP32 matrix, returned as i64. dim is retained for donor signature parity and must be -1. The reduction result is read back synchronously, which is an explicit host-observation boundary: it submits pending work and waits. Errors Returns an error when the input is empty or not FP32, dim is not -1, the element count exceeds the shader ABI, allocation fails, or recording, submission, completion, or readback fails.