Commit Graph
371 Commits
Author SHA1 Message Date
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
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
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
Julien Langou 7f4dff6336 oops 2026-03-24 14:35:02 -06:00
Julien Langou 8fa1db366b add NaN check for input scalars s and c to lapacke_crot and lapacke_srot 2026-03-24 14:18:29 -06:00
Kevin J. Sung caab666dd4 add crot and zrot to LAPACKE 2026-02-21 08:29:46 -05:00
Simon Maertens 54817e9385 Replace FORTRAN_STRLEN type in the lapack.h header if it's different from size_t 2026-01-13 12:07:05 +01:00
Michał Górny 548f62369e Implement MSVC complex types
Implement the support for the `_Fcomplex` and `_Dcomplex` types used
by MSVC in place of the standard C99 complex types.  This is necessary
to make LAPACK build out of the box with MSVC, since it does not
implement the default C99 types.

See: https://learn.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support

I went for the simplest implementation possible, limiting the changes
to swapping the default types used when MSVC is used as the compiler,
also when `lapack_config.h` is not used.  I haven't added
a `LAPACK_COMPLEX_*` ifdef for it, but I can do that if you prefer.

Signed-off-by: Michał Górny <mgorny@quansight.com>
2025-11-07 19:25:44 +01:00
Simon Maertens 0de6ae0fc4 Fixed const specifiers in several LAPACKE function signatures and removed some spurious transpositions of output matrices that are in fact pure input parameters. 2025-10-22 16:50:10 +02:00
YI Zeping 5bde1cd38e fix xGESVDQ's jobu and jobv support in lapacke 2025-07-14 15:42:09 +08:00
Martin Kroeker 2d56b7e6a2 Allocate IWORK to hold at least the one element for workspace queries 2025-07-09 23:26:12 +02:00
Martin Kroeker ecbbecd48a Allocate IWORK to hold at least the one element for workspace queries 2025-07-09 23:23:56 +02:00
langou 14df73a8c6 Merge pull request #1135 from langou/try___fix_cunmlq_zunmlq_in_LAPACKE 2025-06-13 20:29:33 -06:00
langou 18587a4169 Merge pull request #1124 from grisuthedragon/fix-const-cblas
Fix const qualifier warnings in CBLAS
2025-06-13 17:51:02 -06:00
Julien Langou 709a34bb95 Fix #1134 - Bug in Reference LAPACKE’s cunmlq and zunmlq for row-major layout and side right
Bug reported by @neil-lindquist. Thanks Neil!

On line 93 of both lapacke_cunmlq_work.c and lapacke_zunmlq_work.c, m is passed
to LAPACKE_zge_trans as the 2nd dimension. However, the 2nd dimension should be
r to handle side right correctly. All the other versions of {or,un}m{qr,lq} seem
to be correct.

Also line 52 of lapacke_cunmlq.c and lapacke_zunmlq.c have the same issue: m is
used for the column dimension instead of r. (Those files also do not currently
compute r). The real valued cases have the correct behavior.
2025-06-13 17:40:01 -06:00
ajz34 88f65d66b5 fix ldvt check in ?gesdd 2025-05-12 19:42:53 +08:00
Martin Köhler c1c39a8a14 Fixed cast-qual and other warnings in LAPACKE 2025-04-24 10:40:18 +02:00
Lucas M. Schnorr a848e1e760 fix environment variable name 2024-10-15 10:10:37 -03:00
Lucas M. Schnorr f04808c2ab remove comparison as these conditions are never true 2024-10-12 01:14:13 -03:00
Weslley S. Pereira 17e7f9ee22 Revert "Revert "Add a few forgotten API_SUFFIX wrappers in the recently changed LAPACKE ?TFSM"" 2024-10-02 10:01:14 -06:00
langou dd627fcb20 Revert "Add a few forgotten API_SUFFIX wrappers in the recently changed LAPACKE ?TFSM" 2024-10-01 09:04:40 -06:00
Martin Kroeker 427a9b4526 Add another missing API_SUFFIX wrapper 2024-08-20 17:16:31 +02:00
Martin Kroeker 9d56cfff6d Add missing API_SUFFIX wrapper 2024-08-20 17:13:38 +02:00
Martin Kroeker 4416581d75 Add missing API_SUFFIX wrapper 2024-08-20 17:12:47 +02:00
Martin Kroeker 8048b74f54 Add missing API_SUFFIX wrapper 2024-08-20 17:11:57 +02:00
Martin Kroeker 04b02f0107 Add missing API_SUFFIX wrapper 2024-08-20 17:11:12 +02:00
Martin Kroeker a7b82edbae Add missing API_SUFFIX wrapper 2024-08-20 17:10:17 +02:00
Martin Kroeker e612c6df83 Add missing API_SUFFIX wrapper 2024-08-20 17:09:17 +02:00
Martin Kroeker 4b85a11e56 Add missing API_SUFFIX wrapper 2024-08-20 17:07:42 +02:00
Martin Kroeker 5c03f73611 add missing API_SUFFIX wrapper 2024-08-20 17:05:15 +02:00
sergey-v-kuznetsov 7fd3d47b03 PR contains bug fixes found in ?tfsm 2024-08-09 17:17:35 -07:00
Simon Maertens ed17a255af Removed spurious char lenght arguments in LSAME declaration 2024-06-20 16:04:55 +01:00
Simon Maertens 6cd9d27cd5 Made the type of hidden Fortran strlen arguments configurable for the NAG Fortran compiler and old GFortran 2024-06-19 15:31:45 +02:00
Simon Maertens 0af92d8230 Bump minimum CMake version to 3.13 2024-06-05 13:13:38 +02:00
Maria Kraynyuk 15d05b4fbc fix code style in LAPACKE DGESV examples 2024-02-05 10:54:16 -08:00
Maria Kraynyuk 41909fd0c5 Add missed memory deallocation to LAPACKE DGESV examples 2024-02-05 10:54:16 -08:00
Maria Kraynyuk ee213a3ed3 resolve conflicts after rebasing 2024-02-05 10:32:21 -08:00
Maria Kraynyuk dae4c5a3a4 Add LAPACKE examples for extended _64 API 2024-02-05 10:28:27 -08:00
Maria Kraynyuk 907725572a Wrap all functions to macro for Index-64 API in LAPACKE 2024-02-05 10:21:06 -08:00
Maria Kraynyuk 741a2c2ee0 Add extended API with _64 suffix to LAPACKE 2024-02-05 10:20:49 -08:00
Weslley S Pereira 88277c5b8e Solves two memory leaks in the examples 2023-11-01 09:32:50 -06:00
Weslley S Pereira 981af1160b Fix a minor bug 2023-10-31 11:18:28 -06:00
Weslley S Pereira 6a74005272 Solve a few bugs generated in the previous commit 2023-10-31 11:18:28 -06:00
Weslley S. Pereira fa75a821b6 Merge pull request #893 from chayleaf/gnu-install-dirs
allow absolute GNU install dirs
2023-10-31 10:40:31 -06:00
Weslley S. Pereira 62e6bdfc71 Merge pull request #880 from martin-frbg/issue879
Update C prototypes and LAPACKE interfaces for ?GEDMD/?GEDMDQ
2023-10-31 10:40:09 -06:00
scivision 0a52d71f09 LAPACK CMakeLists.txt was using features from CMake 3.6 already
CMake 3.27 warns for cmake_minimum_required < 3.5
2023-10-12 15:42:13 -04:00