one

static BMat8 libsemigroups::BMat8::one(size_t dim = 8)

Returns the identity BMat8.

This member function returns the BMat8 with the first dim entries in the main diagonal equal to 1 and every other value equal to 0.

Return

A BMat8.

Exceptions

This function is noexcept and is guaranteed never to throw.

Complexity

Constant.

Parameters
  • dim: the dimension of the identity (default: 8)