Learn R Programming

symDMatrix (version 2.1.1)

nBlocks: Return the Number of Column/Row Blocks of a symDMatrix Object

Description

This function returns the number of row blocks the original matrix has been partitioned into.

Usage

nBlocks(x)

Arguments

x

A symDMatrix object.

Value

The number of column/row blocks of a symDMatrix object.

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab