Initialization

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.

Complexity

Constant.

Parameters
  • i – the row

  • j – the column

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

Throws

LibsemigroupsException – if i or j is out of bounds.

Returns

(None)

inline void libsemigroups::BMat8::swap(BMat8 &that) noexcept

Swaps this with that.

This member function swaps the values of this and that.

Complexity

Constant.

Parameters

that – the BMat8 to swap this with.

Throws

(None) – This function is noexcept and is guaranteed never to throw.

Returns

(None)