nBlocks {symDMatrix} | R Documentation |
This function returns the number of row blocks the original matrix has been partitioned into.
nBlocks(x)
x |
A |
The number of column/row blocks of a symDMatrix
object.
# Load example symDMatrix (G)
load.symDMatrix(system.file("extdata", "G.RData", package = "symDMatrix"), readonly = TRUE)
# Get the number of row blocks the original matrix was partitioned into
nBlocks(G)