Printb {lazy.tools}R Documentation

Print Super Matrix ( Partitioned Matrix, Block Matrix ) with Separators.

Description

Print Super Matrix ( Partitioned Matrix, Block Matrix ) with Separators.

Usage

Printb(smat, fmt = NULL, nrows = NULL, ncols = NULL, sep = "", debug = 0)

Arguments

smat

input super matrix with SMdim attributes

fmt

format specification of the form: name & width & . & dicimal

nrows

a vector consisting of the # of rows of each sub matrix

ncols

a vector consisting of the # of columns of each sub matrix

sep

separator character

debug

= 1 to debug

Details

See the description of supermat, getSM, or modSM for supermatrix attributes.

Examples

SM=demomat(c(2,3,4),c(1,2,4),supermat=1)
SMc=demomat(c(2,3,4),c(1,2,4),supermat=1, root="a")

Printb( SM )
Printb( SM, sep="." )
Printb( SMc, fmt="8.0" )

attributes(SM)$SMdim=NULL
Printb( SMc, fmt="5", nrows=c(2,3,4), ncols=c(1,2,4))
Printb( SMc, fmt="5", nrows=c(3,3,3), ncols=c(2,2,2,1))



[Package lazy.tools version 0.1.4 ]