View source: R/generalized-replication-helpers.R
| compute_eigen_decomposition | R Documentation |
Compute the eigendecomposition of a matrix
compute_eigen_decomposition(Sigma)
Sigma |
A symmetric matrix |
Computes the eigendecomposition of a symmetric matrix,
either using the base R function eigen() or instead using the 'torch'
package if the user has 'torch' installed and
has set options(svrep.torch_device = "cpu")
or options(svrep.torch_device = "cuda").
A list object with two named components:
values: A vector of eigenvalues.
vectors: A matrix with eigenvectors corresponding to the eigenvalues.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.