Commit Graph
3437 Commits
Author SHA1 Message Date
Simon Maertens 5969737ba1 Use getenv_s on Windows and make the use of gentenv on unix safer by allocating a new char array for the environment variable. 2026-04-21 19:02:30 +02:00
langou 09e8a7b317 Merge pull request #1173 from foxtran/update/function-arguments
Update Function Arguments in `?gees`, `?geesx`, `?gges`, `?ggesx`, and `?gges3`
2026-04-18 18:06:48 -06:00
langou 88dc26084d Merge pull request #1247 from martin-frbg/appveyor-flang22
Update the ancient flang version used in Appveyor CI
2026-04-17 07:47:34 -06:00
langou 5276a67314 Merge pull request #1248 from martin-frbg/cmake-findpython
Update the search strategy for a Python3 interpreter
2026-04-17 07:41:14 -06:00
Martin Kroeker a53ab62307 Update the search strategy for a Python interpreter 2026-04-17 12:38:58 +02:00
Martin Kroeker 9aed94de6d Update flang to 22 (requiring newer cmake and Visual Studio 2017 too) 2026-04-17 12:23:14 +02:00
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 f6fb1114ab Merge pull request #1232 from nakatamaho/fix/testing-csd-input-count
TESTING: fix inconsistent entry count in csd.in
2026-04-14 09:28:24 -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
langou 1c493c4c5b Merge pull request #1233 from nakatamaho/cleanup/testing-lin-drvrf-constants
TESTING/LIN: use named constants in drvrf tests
2026-04-13 07:31:56 -06:00
NAKATA Maho c21b6a6754 ci: retrigger actions 2026-04-12 12:15:24 +09:00
langou ff3f98214f Merge pull request #1230 from nakatamaho/cleanup/eig-errbd-errhs-constants
TESTING/EIG: use named ONE constants in several error-exit tests
2026-04-11 09:08:37 -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 25d74b31a7 TESTING/LIN: use named constants in drvrf tests
Replace hard-coded floating-point constants with existing named
  constants in the drvrf3 and drvrfp test drivers. This keeps the test
  initialization code consistent with surrounding LAPACK test style.
2026-04-11 20:29:54 +09:00
NAKATA Maho 8380fe2c40 TESTING: fix inconsistent entry count in csd.in
TESTING/csd.in declares that the number of values of M, P, and Q
is 10, but each of the three data lines actually contains 11
entries.

Update the count to 11 so the header matches the test input data.
This is a test-data consistency fix only.
2026-04-11 20:15:23 +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
langou 774b05d15d Merge pull request #1221 from langou/origin/follow_up_on_PR1146
Follow up on pr1146 (v2)
2026-03-31 16:57:12 -06:00
Julien Langou 944e920ac6 address @mgates' suggestion: "I tend to reset pointers to NULL after freeing them, to avoid any possible confusion." 2026-03-31 09:18:46 -06:00
Julien Langou 6c4efb0307 address @mgates' suggestion: "A comment that joba == e is using V as workspace would be helpful. (Per later comment when transposing results.)" 2026-03-31 09:07:39 -06:00
Julien Langou bb1afab469 went back and forth on how to handle the case ((m==0)||(n==0)) 2026-03-28 14:23:22 -06:00
Julien Langou 077a97f9d7 address @mgates3 requested changes on this pull request (thanks!) 2026-03-28 14:15:52 -06:00
langou ed4d486f65 Merge branch 'Reference-LAPACK:master' into follow_up_on_PR1146 2026-03-28 13:40:15 -06:00
langou a884b29254 Merge pull request #1213 from langou/MINMN_EQ_0 2026-03-28 10:19:46 -06:00
langou d3388ade69 Merge pull request #1220 from nakatamaho/topic/xLARGV-fix-helper-naming
clargv,zlargv: rename local ABS1 helper to CABSMAX
2026-03-28 08:09:49 -06:00
langou 9130566c33 Merge pull request #1219 from nakatamaho/refactor/unify-abs1-to-cabs1
refactor: rename ABS1 statement function to CABS1 for consistency
2026-03-28 08:05:47 -06:00
langou d6bd7e3f4e Merge pull request #1218 from nakatamaho/fix/blas-cabs1_axpy
BLAS: inline SCABS1/DCABS1 into CAXPY/ZAXPY as statement function CABS1
2026-03-28 08:05:11 -06:00
NAKATA Maho 1ed1f080da clargv,zlargv: rename local ABS1 helper to CABSMAX
The local ABS1 statement function in CLARGV and ZLARGV does not compute
the usual complex ABS1/CABS1 quantity. It returns

    max(abs(real(z)), abs(aimag(z)))

and is used only as a scaling helper in the same algorithmic path as
CLARTG/ZLARTG.

Rename the helper to CABSMAX so that the name matches its actual
behavior and does not suggest CABS1 semantics.

No numerical behavior is changed.
2026-03-28 16:55:08 +09: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
NAKATA Maho 0843d3ed4b BLAS: inline SCABS1/DCABS1 into CAXPY/ZAXPY as statement function CABS1
Replace external function references to SCABS1 and DCABS1 with a local
statement function CABS1 in CAXPY and ZAXPY respectively, eliminating
the dependency on those auxiliary routines.
2026-03-28 14:10:56 +09:00
langou c550a3638b Merge pull request #1215 from langou/typo_in_comment_of_xrotmg 2026-03-27 12:48:18 -06:00
langou 64e47cf7e2 Merge pull request #840 from weslleyspereira/try-lapack_namespace
In CMake, install BLAS::BLAS and LAPACK::LAPACK
2026-03-27 08:31:31 -06:00
Julien Langou 8d54a91fee typo, thanks to @jasonriedy for letting me know
issue with doxygen comments
2026-03-26 13:05:33 -06:00
Julien Langou e7b6349d39 oops 2026-03-26 12:56:16 -06:00
Julien Langou dc69275836 rewrite of lapacke_[x]gesvdq_work.c 2026-03-26 12:45:49 -06:00
Julien Langou e67e3b47d2 minor typos in ZGESVDQ 2026-03-26 08:36:49 -06:00
langou d6bf599fd7 (typo) Fix variable name 2026-03-26 08:30:15 -06:00
Julien Langou ea65bb77ba As suggested by Angelika,see PR#1035, use MINMN.EQ.0 instead of M.EQ.0 2026-03-26 08:05:24 -06:00
langou 034ada14fa Merge pull request #1035 from frjohnst/geqp3_Jul2024
xGEQP3 changes July 2024
2026-03-26 07:55:41 -06:00
langou 2ec774a2f6 Merge branch 'master' into try-lapack_namespace 2026-03-25 14:41:24 -06:00
langou a22074819d Merge pull request #967 from christoph-conrads/943-xBBCSD-read-of-unitialised-value
xBBCSD: fix uninitialized read
2026-03-25 14:31:29 -06:00
langou 89791177a7 Merge branch 'master' into 943-xBBCSD-read-of-unitialised-value 2026-03-25 13:21:59 -06:00
langou 1d7b5c10a5 Merge pull request #1052 from angsch/master
Converge >= and > usage in docs and implementation of GESVJ
2026-03-25 13:15:16 -06:00
langou 4f84ecc5ca Merge pull request #774 from mgates3/tgsen
fix workspace size in tgsen
2026-03-25 12:58:51 -06:00
langou 95640a9031 Merge pull request #1140 from MaartenBaert/fix-dlasd7
Fix documentation error and ordering bug in DLASD7
2026-03-25 12:52:49 -06:00
langou f954f62cd1 Merge pull request #1146 from yizeyi18/xgesvdq-more-jobuv
Fix `xGESVDQ`'s jobu and jobv support in LAPACKE
2026-03-25 12:36:10 -06:00
langou 8104c32fe8 Merge pull request #1168 from foxtran/refactor/ieeeck
Refactor IEEECK to avoid generating IEEE exceptions by using IEEE_ARITHMETIC
2026-03-25 12:32:58 -06:00
langou ac573b73bb Merge pull request #1187 from krystophny/fix/dgd-test-seed-fma-sensitivity
Fix DGS test seed to avoid FMA-sensitive ill-conditioned matrix
2026-03-25 12:24:30 -06:00
langou 92ca29dc64 Merge pull request #1212 from nakatamaho/fix/typo-fix-dmd 2026-03-25 04:11:13 -06:00