spy

fun spy(matrix: SparseMatrix, k: Int = 1): Canvas(source)

Visualize sparsity pattern.

Return

the plot canvas.

Parameters

matrix

a sparse matrix.

k

the number of colors in the palette.