oa::matrix::mean
Arithmetic mean of all values when dim is -1, or one selected axis. The semantic operation lowers to one Sum stage followed by one Scale stage, matching the donor composite. A full reduction returns shape [1]; an axis reduction preserves rank and replaces the selected extent with one. Errors Returns an error when the input is empty or not FP32, dim is invalid, a size exceeds the admitted shader ABI, allocation fails, or recording fails.
Function Documentation
Arithmetic mean of all values when dim is -1, or one selected axis. The semantic operation lowers to one Sum stage followed by one Scale stage, matching the donor composite. A full reduction returns shape [1]; an axis reduction preserves rank and replaces the selected extent with one. Errors Returns an error when the input is empty or not FP32, dim is invalid, a size exceeds the admitted shader ABI, allocation fails, or recording fails.