GF2::Matrix — Minimize the Space Used

Potentially change the capacity of a bit-matrix.

constexpr Matrix &shrink_to_fit();          (1)
1 This is a request to minimize the unused/excess capacity. May do nothing.

Method returns *this so you can chain it with other calls.

The method will not change the dimensions of a bit-matrix (so rows(), cols(), and size() remain unchanged).
No elements are added or deleted.

If the capacity does change, all the old values are unaltered, however, references will be invalidated.
See Also

description
clear