matrix_offset_to_arg/3

"matrix_offset_to_arg(+ Matrix,- Offset,+ Position" )

Given a position Position _ for matrix _Matrix return the corresponding numerical Offset from the beginning of the matrix.