View source: R/S3_pseudoinverse.R
| pseudoinverse | R Documentation |
Generic function for computing the Moore-Penrose pseudoinverse.
The HDF5Matrix method computes the pseudoinverse entirely on
disk using block-wise SVD; the full matrix is never loaded into RAM.
Delegates to bdpseudoinv_hdf5(). Result stored in the same
HDF5 file under OUTPUT/<dataset>_pinv by default.
pseudoinverse(x, ...)
## S3 method for class 'HDF5Matrix'
pseudoinverse(x, ...)
## Default S3 method:
pseudoinverse(x, ...)
x |
An object. For |
... |
Additional arguments passed to |
For HDF5Matrix: a new HDF5Matrix containing the
pseudoinverse.
solve.HDF5Matrix, svd.HDF5Matrix
tmp <- tempfile(fileext = ".h5")
m <- matrix(c(1,2,3,4,5,6), 3, 2)
X <- hdf5_create_matrix(tmp, "data/A", data = m)
P <- pseudoinverse(X)
dim(P) # 2 x 3
close(X); close(P)
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.