Commit Graph
28 Commits
Author SHA1 Message Date
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 ed17a255af Removed spurious char lenght arguments in LSAME declaration 2024-06-20 16:04:55 +01:00
Maria Kraynyuk 907725572a Wrap all functions to macro for Index-64 API in LAPACKE 2024-02-05 10:21:06 -08:00
musvaage f3fff11ccf typos 2023-04-11 13:52:58 -05:00
Simon Märtens 846f3cb324 Removed unnecessary return statement in void function. 2022-11-18 16:36:53 +01:00
Simon Maertens 6ef9ae99da Updated build system. 2022-10-30 23:47:16 +01:00
Simon Maertens 6b5c5bba7f Implemented transpose function for trapezoidal matrices. 2022-10-30 21:09:03 +01:00
Simon Maertens 70c4244912 Paranthesis formatting. 2022-10-30 21:02:31 +01:00
Simon Maertens c43d27a889 Paranthesis formatting. 2022-10-30 20:14:32 +01:00
Simon Maertens 2da7000a7f Fixed bug in trapezoidal NaN check. 2022-10-30 20:12:09 +01:00
Simon Maertens bcfdb93aed Removed tabs. 2022-10-27 17:56:17 +02:00
Simon Maertens 14ff62a81e Removed empty lines. 2022-10-27 17:54:04 +02:00
Simon Maertens 0b36d01679 Formatting. 2022-10-27 17:34:42 +02:00
Simon Maertens 9d4f2e0cc7 Added NaN check for trapezoidal matrices and applied it to LAPACKE_?lantr 2022-10-27 17:26:11 +02:00
Julie e18d437924 Making LAPACK's code eternal... no more version and date in source files.
GitHub is now enabling us to track accurately version and date.
No need for this anymore.
2021-03-25 10:16:58 -07:00
Kyle Guinn dd2f632f2e Add PHONY targets 2019-07-27 23:07:37 -05:00
Kyle Guinn be23965929 Handle relative paths consistently
Place built libraries in $(TOPSRCDIR) and refer to their location by
using $(TOPSRCDIR).
2019-07-27 18:48:52 -05:00
Kyle Guinn 33258cb4b2 Switch to POSIX make variable names
Allows us to use the built-in suffix rules where appropriate.

  FORTRAN   -> FC            (POSIX)
  OPTS      -> FFLAGS        (POSIX)
  DRVOPTS   -> FFLAGS_DRV
  NOOPT     -> FFLAGS_NOOPT

  LOADER    -> FC            (use the compiler driver for linking)
  LOADOPTS  -> LDFLAGS       (POSIX)

  ARCH      -> AR            (POSIX)
  ARCHFLAGS -> ARFLAGS       (POSIX)
2019-07-27 18:48:52 -05:00
luzpaz 3fac41ca28 Fix misc. typos
Mostly trivial source code comments.
2017-12-01 06:55:48 -05:00
Kyle Guinn 8fce0e24bd Simplify the clean targets
cleanobj:  Remove object files
cleanlib:  Remove libraries
cleanexe:  Remove test and example executables
cleantest: Remove test output and core dumps
clean:     All of the above
2017-02-06 01:07:10 -06:00
Kyle Guinn a203318e67 Add libraries as prerequisites
Use the automatic variable $^ to refer to all prerequisites when
linking or creating an archive.
2017-02-04 22:47:19 -06:00
langou 48a80fb7cb Merge pull request #119 from turboencabulator/cleanup
Linking fixes
2017-02-04 10:04:29 +01:00
eugene.chereshnev 91dafb23ef lapacke_*tp_trans: condition should be inverted
The function converts <in> from <matrix_layout> to opposite layout.
E.g. for upper case (all indices are 0-based):
col-major, upper: a(i,j) is stored in ap[(1 + j)*j/2 + i]
row-major, upper: a(i,j) is stored in ap[(n + n-i+1)*i/2 + j-i]
2017-02-03 18:47:03 -08:00
Kyle Guinn 13b5b2c88c Allow building LAPACKE with XBLAS and TMGLIB simultaneously
Order the libraries the same as the Makefiles are ordering them:
tmglib, lapack, xblas, blas.

Fix combinations of USE_XBLAS with BUILD_SINGLE, etc. so that it only
builds the LAPACK extended functions of the desired type and precision.

Remove "OBJ" from variable names that are not lists of objects.
2017-02-01 20:46:28 -06:00
Julie 3f23bd5d53 merging: Various cleanups to makefiles #84
Contribution by @turboencabulator
Closing #84
2016-11-25 17:03:13 -08:00
Hans Johnson f8fb0842d5 STYLE: Remove trailing whitespace in CMake files
This is mostly a long term maintenance improvement.

Many coding styles require elimination of trailing whitespace, and
many editors and source code management configurations automatically
gobble up whitespace. When these tools gobble up whitespace, it
complicates reviewing the meaningful code changes.

By removing whitespace on one patch, it makes future
code reviews much easier.
2016-07-09 10:34:19 -05:00
julie 8db6e63411 APPLYING INTEL PATCHES sent to Julie on Feb 19th 2016 by Dima from INTEL (dmitry.g.baksheev@intel.com)
[PATCH 29/42] Fix lapacke_?gb_nancheck - misuse of leading dimension as matrix size
2016-02-23 05:40:53 +00:00
julie 8d160e5f96 Fixing folder uppercase / lower case issue - Thank you Don 2014-10-08 18:40:57 +00:00