generic_check_ndarray_sum#

pybrops.core.error.error_generic_numpy.generic_check_ndarray_sum(v, vname, vsum, vaxis=None)[source]#

Generic check ndarray sum function.

Parameters:
  • v (numpy.ndarray) – Reference to object variable.

  • vname (str) – Name associated with the object variable.

  • vsum (number, numpy.ndarray, list-like) – Sum ndarray must have.

  • vaxis (int) – Axis or axes along which to sum.

Return type:

None