rrBLUP_ML0_calc_d_V#

pybrops.model.gmod.rrBLUPModel0.rrBLUP_ML0_calc_d_V(G)[source]#

Calculate the spectral decomposition of a (symmetric) genomic relationship matrix.

Parameters:

G (numpy.ndarray) – A genomic relationship matrix of shape (nobs,nobs).

Returns:

out – A tuple containing (d,V).

Where:

  • d is a vector of shape (nobs,) representing the diagonal of the spectral decomposition.

  • V is a matrix of shape (nobs,nobs) representing the orthonormal basis of the spectral decomposition.

Entries are sorted from highest eigenvalue to lowest eigenvalue.

Return type:

tuple