]> gitweb.michael.orlitzky.com - octave.d.git/commit
tests/preconditioned_conjugate_gradient_method_tests.m: make reliable? master codeberg/master
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 13 Apr 2026 11:08:10 +0000 (07:08 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 13 Apr 2026 11:08:10 +0000 (07:08 -0400)
commit7959c5f8394f7c3bf4840159f4e54d5edbacda67
treedc2dc2a0276c61b72ff5b0f302e799cc332e2ecf
parentfe04b7f74963527814d992b556ba250f7d607cec
tests/preconditioned_conjugate_gradient_method_tests.m: make reliable?

This was ultimately made reliable by the new "condmax" parameter to
random_positive_definite_matrix(), but there are some additional
tweaks afterwards:

  * Reorder / rename some stuff to improve readability
  * Use a higher condmax than default, since we are preconditioning
  * Pass the full "M" matrix to pcg(), to more closely match what
    our own PCG function is doing.

The tests "always" pass now.
tests/preconditioned_conjugate_gradient_method_tests.m