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 ofthis
toval
. 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
orj
is out of bounds.- Returns:
(None)
-
inline void libsemigroups::BMat8::swap(BMat8 &that) noexcept¶
Swaps
this
withthat
.This member function swaps the values of
this
andthat
.- Complexity
Constant.
- Parameters:
that – the BMat8 to swap
this
with.- Throws:
(None) – This function is
noexcept
and is guaranteed never to throw.- Returns:
(None)