Learn R Programming

CMF (version 1.0.3)

p_check_sparsity: Internal function for checking whether the input is in the right format

Description

Internal function for checking whether the input is in the right format

Usage

p_check_sparsity(mat, max_row, max_col)

Value

TRUE if the input is in coordinate/triplet format. FALSE otherwise.

Arguments

mat

An input matrix of class matrix

max_row

Maximum row index for mat

max_col

Maximum column index for mat