matrix mean for filters
Compute the mean of all elements in a matrix.
Signature
> matrix mean {flags}
Input/output types:
| input | output |
|---|---|
| matrix | float |
Examples
Compute the mean of a 2x2 matrix
> [[1 2] [3 4]] | into matrix | matrix mean
2.5Compute the mean of an identity matrix
> matrix identity 2 | matrix mean
0.5