Adds a `Diagnostics` component that shows the following diagnostics from the last realization:
- Confirmation of success or a short description of what failed.
- The value of the loss function at each step.
- The spectrum of the Hessian at each step.
The loss and spectrum plots are shown on switchable panels.
Also includes some refactoring/renaming of existing code.
Co-authored-by: Aaron Fenyes <aaron.fenyes@fareycircles.ooo>
Reviewed-on: #92
Co-authored-by: Vectornaut <vectornaut@nobody@nowhere.net>
Co-committed-by: Vectornaut <vectornaut@nobody@nowhere.net>