bdim: Number of Blocks by Rows/Columns of a Block-Matrix

Description Usage Arguments Details Value See Also Examples

Description

return the number of rows present in a block-matrix

Usage

1
  bdim(x)

Arguments

x

a block-matrix (object of class "blockmatrix")

Details

Use bdim to get the blockdimension
Use brow to get the number of blocks by rows
Use bcol to get the number of blocks by columns

Value

an integer indicating the number of blocks

See Also

blockdim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# create some block-matrices
A = blockmatrix(matrix(1:12, 3, 4), rowparts=3, colparts=c(2,2))
B = blockmatrix(matrix(1:20, 5, 4), rowparts=c(3,2), colparts=c(2,2))

# row-dimensions
brow(A)
brow(B)

# column-dimensions
bcol(A)
bcol(B)

gastonstat/blockberry documentation built on May 16, 2019, 5:44 p.m.