aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2025-04-04 11:45:23 +0200
committerEric Botcazou <ebotcazou@adacore.com>2025-04-04 11:47:55 +0200
commit42d6a4a985a6aa1c8c06daceb66e3408566a2e3a (patch)
tree82a0f634729ebb8a91fcf9f1da8dda574a4b1ab4 /libjava/classpath/lib/java
parentaffdef57a45a443ead24f6afb7027a2683028031 (diff)
downloadgcc-42d6a4a985a6aa1c8c06daceb66e3408566a2e3a.zip
gcc-42d6a4a985a6aa1c8c06daceb66e3408566a2e3a.tar.gz
gcc-42d6a4a985a6aa1c8c06daceb66e3408566a2e3a.tar.bz2
Ada: Fix thinko in Eigensystem for complex Hermitian matrices
The implementation solves the eigensystem for a NxN complex Hermitian matrix by first solving it for a 2Nx2N real symmetric matrix and then interpreting the 2Nx1 real vectors as Nx1 complex ones, but the last step does not work. The patch fixes the last step and also performs a small cleanup throughout the implementation, mostly in the commentary and without functional changes. gcc/ada/ * libgnat/a-ngcoar.adb (Eigensystem): Adjust notation and fix the layout of the real symmetric matrix in the main comment. Adjust the layout of the associated code accordingly and correctly turn the 2Nx1 real vectors into Nx1 complex ones. (Eigenvalues): Minor similar tweaks. * libgnat/a-ngrear.adb (Jacobi): Minor tweaks in the main comment. Adjust notation and corresponding parameter names of functions. Fix call to Unit_Matrix routine. Adjust the comment describing the various kinds of iterations to match the implementation.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions