Initialization¶
-
void libsemigroups::BMat8::set(size_t i, size_t j, bool val)¶
Sets the (
i,j)th position toval.This member function sets the (
i,j)th entry ofthistoval. 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
iorjis out of bounds.- Returns:
(None)
-
inline void libsemigroups::BMat8::swap(BMat8 &that) noexcept¶
Swaps
thiswiththat.This member function swaps the values of
thisandthat.- Complexity
Constant.
- Parameters:
that – the BMat8 to swap
thiswith.- Throws:
(None) – This function is
noexceptand is guaranteed never to throw.- Returns:
(None)