trans_sum#
- pybrops.breed.prot.sel.prob.trans.trans_sum(decnvec, latentvec, **kwargs)[source]#
Take the sum of all elements in a latent vector.
- Parameters:
decnvec (numpy.ndarray) – An array of shape
(ndecn,)
containing decision variables corresponding thelatentvec
values.latentvec (numpy.ndarray) – An array of shape
(l,)
to be transformed.kwargs (dict) – Additional keyword arguments. Not used by this function.
- Returns:
out – An array of shape
(1,)
containing the latent vector sum.- Return type:
numpy.ndarray