Learn R Programming

symDMatrix (version 2.1.1)

blockSize: Return the Block Size of a symDMatrix Object

Description

This function returns the block size of a symDMatrix object.

Usage

blockSize(x, last = FALSE)

Arguments

x

A symDMatrix object.

last

A boolean indicating whether to return the block size of the last (TRUE) column/row block or any of the other blocks (FALSE, default).

Value

The block size of a symDMatrix object.

Details

The last block of a column/row may be smaller than the other blocks. Its size can be retrieved by setting last to TRUE.

Examples

Run this code
# NOT RUN {
# Load example symDMatrix (G)
load.symDMatrix(system.file("extdata", "G.RData", package = "symDMatrix"), readonly = TRUE)

# Get the block size
blockSize(G)

# Get the block size of the trailing blocks
blockSize(G, last = TRUE)
# }

Run the code above in your browser using DataLab