Calculates the mean of a tensor.
The tensor
Optional
An axis less than the rank, removed from the result, while omitting it reduces all entries to a number
const result = Chalkboard.tens.mean([[1, 2, 3], [4, 5, 6]], 1); // Returns [2, 5] Copy
const result = Chalkboard.tens.mean([[1, 2, 3], [4, 5, 6]], 1); // Returns [2, 5]
Calculates the mean of a tensor.