chainerx.var¶
-
chainerx.
var
(a, axis=None, keepdims=False)¶ Compute the arithmetic var along the specified axis.
Returns the var of the array elements. The var is taken over the flattened array by default, otherwise over the specified axis.
- Parameters
a (ndarray) – Array to take the var of.
axis (None or int or tuple of ints) – Along which axis or axes to compute
var. The flattened array is used by default. (the) –
keepdims (bool) – If this is set to True, the axes which are reduced are
in the result as dimensions with size one. With this option, (left) –
result will broadcast correctly against the input array. (the) –
- Returns
The var of
a
, along the axis or axes if specified.- Return type
See also