trans_sum#
- pybrops.breed.prot.sel.transfn.trans_sum(mat, axis=None, **kwargs)[source]#
Transform a numpy.ndarray by taking a summation across an axis.
- Parameters:
mat (numpy.ndarray) – An array to be transformed through summation.
axis (None, int, tuple of ints) – Axis along which to take the summation.
kwargs (dict) – Additional keyword arguments. Not used by this function.
- Returns:
out – A summation transformed array.
- Return type:
numpy.ndarray