Commit Graph
237 Commits
Author SHA1 Message Date
langou eb4f2b1d7f Merge pull request #1228 from ndingle-arm/dmd-patch
Testing: initialize ISPEC=9 before running DMD tests
2026-04-15 06:48:15 -06:00
langou 14f3af6976 Merge pull request #1234 from nakatamaho/cleanup/csdts
cleanup: separate real and complex zero/one constants in {c,z}csdts
2026-04-13 07:32:58 -06:00
NAKATA Maho 820ef1d794 cleanup: separate real and complex zero/one constants in {c,z}csdts
Replace REALONE/REALZERO and complex ZERO/ONE with
type-specific named constants in the CSD test routines:
ZERO/ONE for real scalars, and CZERO/CONE for complex values.

Update {C,Z}LASET, {C,Z}GEMM, and {C,Z}HERK call sites to use
the matching constant type, and replace literal imaginary zeros
in CMPLX/DCMPLX calls with the named real ZERO constant.

No functional change intended.
2026-04-11 23:02:17 +09:00
NAKATA Maho dd5d8da796 fix build 2026-04-11 20:12:06 +09:00
NAKATA Maho 7f8ab7bfac cleanup: use named ONE constants in TESTING/EIG error-exit tests
Replace hard-coded 1./1.D0 literals with the named constant ONE
in several TESTING/EIG error-exit test routines.

Add missing ONE parameter declarations where needed so the test
setup code follows the surrounding named-constant style.
2026-04-11 14:19:18 +09:00
Nick Dingle 88e91a5f23 Testing: initialize ISPEC=9 before running DMD tests
The DMD test drivers use the testing ILAENV from TESTING/EIG, where
ISPEC=9 returns IPARMS(9). The drivers never initialized that entry,
so the xGESDD/xBDSDC divide-and-conquer cutoff SMLSIZ came from
undefined state.

This undefined test state can lead to invalid xLASD0 calls and a large
number of false failures. In this patch we initialize XLAENV(9,25) in
the s/c/d/z DMD test drivers so the tests start from a defined ILAENV
configuration.
2026-04-10 16:17:19 +01:00
NAKATA Maho ac82605ea9 refactor: rename ABS1 statement function to CABS1 for consistency
Several LAPACK, BLAS, and CBLAS source files defined a local statement
function named ABS1 for the complex 1-norm approximation:

    ABS1( X ) = ABS( REAL( X ) ) + ABS( AIMAG( X ) )
    ABS1( X ) = ABS( DBLE( X ) ) + ABS( DIMAG( X ) )

The majority of the codebase already uses CABS1 for this identical
purpose. This commit renames ABS1 to CABS1 in all remaining files
(definition line, declaration line, and all call sites within the
same file) to make the naming consistent across the repository.

A small number of fixed-form lines required continuation-line splits
to stay within the 72-column limit after the rename.

No numerical change. Statement functions are file-local in Fortran,
so there is no ABI or interface impact.

This is a preparatory cleanup before inlining these statement
functions (see issue #1200).
2026-03-28 14:46:42 +09:00
langou 92ca29dc64 Merge pull request #1212 from nakatamaho/fix/typo-fix-dmd 2026-03-25 04:11:13 -06:00
NAKATA Maho 33ec2a652c Fix typos in comment strings of [csdzd]chkdmd.f90
- intial/inital -> initial (K_traj loop and K_TRAJ==2 branch)
- eigencalues -> eigenvalues (GEDMD and GEDMDQ comment blocks)
- Rezidual -> Residual (WRITE output strings)
- rayleigh -> Rayleigh (proper noun, z/s/dchkdmd.f90)
- aigenvectors -> eigenvectors (s/dchkdmd.f90)
- localy -> locally (s/dchkdmd.f90 MKL note)
- whith -> with (s/dchkdmd.f90 MKL note)
- worksapce -> workspace (s/dchkdmd.f90 MKL note)
- ZGEDMDQ -> CGEDMDQ in comment blocks (cchkdmd.f90)
- ZGEDMD and ZGEDMDQ -> CGEDMD and CGEDMDQ in WRITE string (cchkdmd.f90)
2026-03-25 13:50:09 +09:00
langou 93f72dd1f7 Merge branch 'master' into fix-f32-issue 2026-03-24 15:08:51 -06:00
langou a52f5fa69d Merge pull request #1207 from nakatamaho/fix/xpgvx-info-to-iinfo
fix(TESTING/EIG): pass IINFO instead of INFO to xSPGVX/xHPGVX in *drvsg2stg
2026-03-24 06:42:12 -06:00
NAKATA Maho 4e013d710c fix(eig): pass IINFO instead of INFO to xSPGVX/xHPGVX in *drvsg2stg
In cdrvsg2stg.f, ddrvsg2stg.f, sdrvsg2stg.f, and zdrvsg2stg.f, the
three RANGE='A'/'V'/'I' calls to CHPGVX, DSPGVX, SSPGVX, and ZHPGVX
were passing INFO as the output error argument instead of IINFO.

The error-check block immediately following each call tests IINFO.NE.0,
but IINFO was never updated by the routine, so errors were silently
ignored. Additionally, the block sets INFO = ABS(IINFO), which would
overwrite the value ZHPGVX/xSPGVX had written into INFO with the
stale value of IINFO.

All other driver calls in these files (ZHEGV, ZHEGVD, ZHEGVX, ZHPGV,
ZHPGVD, ZHBGV, ZHBGVD, ZHBGVX and their s/d/c equivalents) correctly
use IINFO. This commit brings the xSPGVX/xHPGVX calls into line with
the established pattern.

Affected routines (3 call sites each):
  CHPGVX in cdrvsg2stg.f
  DSPGVX in ddrvsg2stg.f
  SSPGVX in sdrvsg2stg.f
  ZHPGVX in zdrvsg2stg.f
2026-03-24 18:21:30 +09:00
NAKATA Maho 8b1494be8c Remove redundant DBLE()/REAL() type conversions in TESTING
In ddrvst.f, ddrvst2stg.f, and dlatm4.f, DBLE() was applied to
DOUBLE PRECISION array elements assigned to DOUBLE PRECISION
variables ― a no-op conversion. Similarly, in sdrvst.f,
sdrvst2stg.f, and slatm4.f, REAL() was applied to REAL array
elements assigned to REAL variables.

Remove these 168 redundant calls. Integer-to-real conversions
(e.g., DBLE(N), DBLE(KLEN-1), REAL(MAX(1,N))) are retained as
they are semantically necessary.
2026-03-24 11:37:16 +09:00
J Berg 15f395c678 Fix truncating large workspace values 2026-02-27 13:31:21 -08:00
Mark Gates ce817407f3 implicit none in TESTING 2025-08-26 23:27:58 -04:00
Martin Köhler fa6a30b24e Fix format string in LAPACK tests to match two-digit minor versions 2025-07-29 10:34:29 +02:00
Dmitry Klyuchinsky ea84abe35f fix missed error message in test for eigenvalue driver routines *ed 2025-04-07 11:40:21 +07:00
Dmitry Klyuchinsky 5efeb474ec fix leading dimension for matrix B in test routine get52 2024-10-14 18:52:58 +07:00
Caroline Newcombe 7f30ba884d Fix infinite loop when an error occurs in tests ddrvst and sdrvst 2024-06-12 15:54:20 -05:00
Kyle Guinn 79a0785334 Normalize line endings
sed -i 's/\s\+$//' SRC/*dmd* TESTING/EIG/*dmd*
Plus manually stripping empty lines at EOF.
2024-01-16 22:43:58 -06:00
Dmitry Klyuchinsky 101800018d add DMD tests into CMakeLists 2023-12-12 12:42:50 +07:00
Dmitry Klyuchinsky cd7523d5b2 handle corner case of lwork in evr/evr_2stage and fix output format in chkxer 2023-12-04 16:35:36 +07:00
scr2016 ba5afcdadb modified comments in TESTING/LIN/alareq.f TESTING/EIG/alareq.f TESTING/EIG/alarqg.f 2023-11-14 04:42:05 -08:00
Marcel Jacobse 2f2e7cb5f5 Fix actual arguments in some procedure calls
Some calls did not match the actual procedure definition
2023-07-14 13:26:31 +02:00
Angelika Schwarz e6a8f4b98d Use dynamic allocation in SYL01 tests 2023-06-17 10:51:33 +02:00
langou fd82c8710b Merge branch 'master' into master 2023-06-01 10:42:23 -06:00
langou e860053d30 Merge pull request #795 from dklyuchinskiy/lapack-extend-error-checks-sysv-sytd2-gehd2
extend tests for error exit sysv sytd2 gehd2
2023-04-14 19:08:37 -06:00
musvaage f3fff11ccf typos 2023-04-11 13:52:58 -05:00
Julien Langou 45b5d663d4 fix #813 2023-04-04 20:21:43 -06:00
Angelika Schwarz 542f4f894d Remove LABAD from testing routines 2023-03-22 09:00:44 +01:00
Daniel Bielich e52daa3151 Fixing compilation warning error for git 2023-03-21 17:14:46 -04:00
Daniel Bielich 1e2d26e27e adding correction to schkdmd tester 2023-03-21 17:11:25 -04:00
Daniel Bielich c91783e615 Merge branch 'master' of https://github.com/dbielich/lapack88 2023-03-21 16:12:27 -04:00
Daniel Bielich 25030ae79e Improving testers - will need to investigate float precision impl 2023-03-21 16:11:43 -04:00
Daniel Bielich bd1204d726 Merge branch 'Reference-LAPACK:master' into master 2023-03-21 14:59:40 -04:00
langou cfaa5aefab Merge pull request #682 from angsch/trevc3
Add numerical tests for trevc3
2023-03-18 07:17:43 -06:00
Daniel Bielich 3b08c51597 Updating src files, testing all precisions. Some clean-up remains but overall addition is complete 2023-03-16 17:28:32 -04:00
EduardFedorenkov ef12723763 fix bug in complex precision tests (c|z)het21 2023-02-17 15:32:00 +07:00
Dmitry Klyuchinsky aa43f301e5 add test for error exit gehd2 2023-02-14 12:30:58 +07:00
Dmitry Klyuchinsky ab92781296 add test for error exit sytd2/hetd2 2023-02-14 12:18:26 +07:00
Daniel Bielich c65a7a77d4 Progress to resolving the bug with complex testers 2023-02-09 13:10:42 -05:00
Daniel Bielich 21059dca70 Progressing code 2022-12-06 16:17:38 -05:00
langou 77fac7e835 Merge pull request #758 from dklyuchinskiy/lapack-fix-failure-eigtstz-zec
Fixed bug in array bounds in complex syl01 test
2022-11-23 07:08:41 -07:00
Simon Märtens 273d758e4a Fixed wrong external function name '[D|Z]GESVQ' -> '[D|Z]GESVDQ' 2022-11-18 16:37:47 +01:00
Dmitry Klyuchinsky 9b5e2c50e3 fixed bug in array bounds in complex syl01 test 2022-11-18 17:58:06 +07:00
Daniel Bielich 7bfb8ffbff single precision tester finished, working on double complex 2022-11-17 14:43:09 -05:00
Daniel Bielich c4adf64dc0 Removing unused variables 2022-11-15 13:25:11 -05:00
Daniel Bielich fd272e7f44 Progress to the testing implementation in double precision 2022-11-09 11:40:48 -05:00
Daniel Bielich 7aeab0792e Fix for complex dmdq codes and progress to tester 2022-11-02 14:11:16 -04:00
langou 7012e36507 Merge pull request #651 from angsch/master
Add level-3 BLAS triangular Sylvester equation solver
2022-10-06 14:22:58 -06:00