| eigen | R Documentation |
Overrides base::eigen() to dispatch on HDF5Matrix
objects. For plain R matrices the call is forwarded to
base::eigen().
eigen(x, symmetric, ...)
## Default S3 method:
eigen(
x,
symmetric = !isSymmetric(x),
only.values = FALSE,
EISPACK = FALSE,
...
)
## S3 method for class 'HDF5Matrix'
eigen(x, symmetric = TRUE, ...)
x |
An |
symmetric |
Logical. Whether to assume |
... |
For |
only.values |
Logical. Ignored; present for compatibility with
|
EISPACK |
Logical. Ignored; present for compatibility with
|
For HDF5Matrix: a named list with elements
values (numeric vector), vectors
(HDF5Matrix or NULL), values_imag, and
is_symmetric.
For other objects: the result of base::eigen().
svd.HDF5Matrix, prcomp.HDF5Matrix
tmp <- tempfile(fileext = ".h5")
m <- crossprod(matrix(rnorm(400), 20, 20))
X <- hdf5_create_matrix(tmp, "data/M", data = m)
ev <- eigen(X, symmetric = TRUE, k = 5L)
ev$values
close(ev$vectors)
close(X)
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.