seq_matrix: Return a sequence of pairs (value, index vector)
Description
Facilitates iterating over matrix, returning a sequence of pairs,
where the first element is a value at index (x, y) and the second one is the index (x, y)
Usage
seq_matrix(mat)
Arguments
mat
matrix
Value
list of two-element list (single value, two-element vector)