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

  • default. (the var. The flattened array is used by) –

  • keepdims (bool) – If this is set to True, the axes which are reduced are

  • option (left in the result as dimensions with size one. With this) –

:param : :param the result will broadcast correctly against the input array.:

Returns

The var of a, along the axis or axes if specified.

Return type

ndarray

See also

numpy.var()