getColMax: Compute max and which.max for columns of a sparse matrix

Description Usage Arguments Value Examples

View source: R/mst.R

Description

Compute max and which.max for columns of a sparse matrix

Usage

1
getColMax(x, cols)

Arguments

x

sparse matrix

cols

column indices

Value

dense matrix with two columns: max and which.max

Examples

1
getColMax(sparseMatrix(i=1,j=2,x=9), 1:2)

rtlemos/scurvy documentation built on Oct. 8, 2018, 12:14 a.m.