coords

std::pair<scalar_type, scalar_type> coords(const_iterator it) const

Returns a pair containing the row and columns corresponding to an iterator.

Parameters:

it – the iterator

Returns:

A value of type std::pair<scalar_type, scalar_type>.

Complexity:

Constant

Exceptions:

this function guarantees not to throw a LibsemigroupsException.