set

void libsemigroups::BMat8::set(size_t i, size_t j, bool val)

Sets the (i, j)th position to val.

This member function sets the (i, j)th entry of this to val. Uses the bit twiddle for setting bits found here.

Return

(None)

Complexity

Constant.

Parameters
  • i: the row

  • j: the column

  • val: the value to set in position (i, j)th

Exceptions