swp(timeslab)R Documentation

Sweep a Matrix

Description

Sweep a Matrix

Usage

swp(a,k1,k2)

Arguments

a The matrix to be swept.
k1,k2 {a} is swept on the diagonals {k1} through {k2}.

Value

swp returns a list containing the following two items:
A Matrix that results from sweeping {a}.
ier Integer variable containing an indicator of whether or not a zero diagonal was encountered during the sweeping (0 means no, 1 means yes).


[Package Contents]