operator()

scalar_reference operator()(size_t const r, size_t const c)

Returns a reference to the specified entry of the matrix.

Parameters
  • r – the index of the row of the entry

  • c – the index of the column of the entry

Returns

A value of type scalar_reference.

Exceptions

this function guarantees not to throw a LibsemigroupsException.

Complexity

Constant

Warning

No checks on the validity of the parameters r and c are performed.

scalar_const_reference operator()(size_t const r, size_t const c) const

Returns a const reference to the specified entry of the matrix.

Parameters
  • r – the index of the row of the entry

  • c – the index of the column of the entry

Returns

A value of type scalar_const_reference.

Exceptions

this function guarantees not to throw a LibsemigroupsException.

Complexity

Constant

Warning

No checks on the validity of the parameters r and c are performed.