colamdR: Column Approximate Minimum Degree Permutation

Description Usage Arguments Details Value References Examples

View source: R/colamdR.R

Description

colamdR returns the column approximate minimum degree permutation of a sparse matrix S. The permutation of S, S[,p], will result in LU factors sparser than S.

Usage

1

Arguments

M

A matrix to be permuted.

Details

This is an implementation of the colamd function available in SuiteSparse, and also implemented in Matlab.

Value

A vector containing the column minimum degree permutation of the matrix M.

References

The authors of the code for "colamd" are Stefan I. Larimore and Timothy A. Davis (davis@cise.ufl.edu), University of Florida.

Examples

1
2
3
M <- matrix(c(1,1,0,0,1,0,0,1,0,1,1,1,1,1,0,0,1,0,1,0), ncol=4)
p <- colamdR(M)
M[,p]

edmcr documentation built on Sept. 10, 2021, 5:10 p.m.