internal static ndarray accumulate(NpyArray_Ops ops, object a, int axis = 0, dtype dtype = null, ndarray @out = null) { ndarray arr = asanyarray(a); if (arr == null) { throw new ValueError("unable to convert a to ndarray"); } NPY_TYPES rtype = dtype != null ? dtype.TypeNum : arr.Dtype.TypeNum; return(NpyCoreApi.PerformAccumulateOp(arr, axis, ops, rtype, @out)); }