| diag | R Documentation |
Overrides base::diag() to dispatch on HDF5Matrix objects.
For plain R matrices/vectors the call is forwarded to base::diag().
When x is an HDF5Matrix, extracts the diagonal as an
in-memory numeric vector (length = min(nrow, ncol)).
diag(x, ...)
## Default S3 method:
diag(x, nrow, ncol, names = TRUE, ...)
## S3 method for class 'HDF5Matrix'
diag(x, ...)
x |
An |
... |
Ignored. |
nrow |
Passed to |
ncol |
Passed to |
names |
Passed to |
For HDF5Matrix: numeric vector of diagonal elements.
For plain R objects: result of base::diag().
diag
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.