rowblock: Extract Row / Column Blocks

Description Usage Arguments Value See Also Examples

Description

return the specified block(s) from a block-matrix Use rowblock or colblock depending on whether you want to get a particular row block or a particular column block (output as block-matrix object)

Usage

1
  rowblock(x, k)

Arguments

x

a multiblock

k

integer to indicate row (or column) block-dimension

Value

the specified row/column block

See Also

get_block, separate

Examples

1
2
3
4
5
6
7
8
# create a block-matrix with 6 blocks
A = blockmatrix(matrix(1:63, 7, 9), c(3,4), c(2,3,4))

# extract first row block
rowblock(A, 1)

# extract third column block
colblock(A, 3)

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