nBlocks {symDMatrix}R Documentation

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

# 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)

[Package symDMatrix version 2.1.1 Index]