trans_flatten#
- pybrops.breed.prot.sel.transfn.trans_flatten(mat, **kwargs)[source]#
Transform a numpy.ndarray by flattening it.
- Parameters:
mat (numpy.ndarray) – An array to be flattened.
kwargs (dict) – Additional keyword arguments. Not used by this function.
- Returns:
out – A flattened array.
- Return type:
numpy.ndarray