Static member functions

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

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.

Complexity

Constant.

Parameters

dim – the dimension of the identity (default: 8)

Throws

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

Returns

A BMat8.

static inline BMat8 libsemigroups::BMat8::random()

Construct a random BMat8.

This static member function returns a BMat8 chosen at random.

Parameters

(None)

Throws

(None) – This function guarantees not to throw a LibsemigroupsException.

Returns

A BMat8.

static BMat8 libsemigroups::BMat8::random(size_t dim)

Construct a random BMat8 of dimension at most dim.

This static member function returns a BMat8 chosen at random, where only the top-left dim x dim entries can be non-zero.

Parameters

(None)

Throws

(None) – This function guarantees not to throw a LibsemigroupsException.

Returns

A BMat8.