This PR adds const labels to the print function of Vector such that const Vectors can be printed as well.
An alternative to adding const labels would be to copy the print function to a const version. However, I think this is unnecessary as the print function could be a const anyway.
An example where this is beneficial is in the case of printing the const singular values owned by for instance BasisGenerator generator. Printing these with
generator->getSingularValues()->print("sv");
will thrown an error.
The CI/mac test seems to fail. From what I understand this is not due to the added const labels.
This PR adds
const
labels to the print function ofVector
such thatconst Vectors
can be printed as well.An alternative to adding
const
labels would be to copy the print function to aconst
version. However, I think this is unnecessary as the print function could be aconst
anyway.An example where this is beneficial is in the case of printing the
const
singular values owned by for instanceBasisGenerator generator
. Printing these withwill thrown an error.
The CI/mac test seems to fail. From what I understand this is not due to the added
const
labels.