Simplify the code logic
Description
Simplify the logic of the subspace. This is needed for a future change which will combine orthogonalization and subspace diagonalization.
News snippet
Code refactoring.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.