rrBLUP_ML0_nonzero_d_V#
- pybrops.model.gmod.rrBLUPModel0.rrBLUP_ML0_nonzero_d_V(d, V, tol=1e-05)[source]#
Extract nonzero components of eigenvalues and eigenvectors from a spectral decomposition.
- Parameters:
d (numpy.ndarray) – A vector of shape
(nobs,)representing the diagonal of the spectral decomposition.V (numpy.ndarray) – A matrix of shape
(nobs,nobs)representing the orthonormal basis of the spectral decomposition.
- Returns:
out – A tuple containing
(d,V).Where:
dis a vector of shape(ncomp,)representing the diagonal of the spectral decomposition.Vis a matrix of shape(nobs,ncomp)representing the orthonormal basis of the spectral decomposition.
- Return type:
tuple