Accepting request 1177587 from science
- update to gsl 2.8: * updated multilarge TSQR method to store ||z_2|| and provide it to the user * add routines for Hermite B-spline interpolation * add functions: - gsl_matrix_complex_conjugate - gsl_vector_complex_conj_memcpy - gsl_vector_complex_div_real - gsl_linalg_QR_lssolvem_r - gsl_linalg_complex_QR_lssolvem_r - gsl_linalg_complex_QR_QHmat_r - gsl_linalg_QR_UR_lssolve - gsl_linalg_QR_UR_lssvx - gsl_linalg_QR_UR_QTvec - gsl_linalg_QR_UU_lssvx - gsl_linalg_QR_UD_lssvx - gsl_linalg_QR_UD_QTvec - gsl_linalg_complex_cholesky_{decomp2,svx2,solve2,scale,scale_apply} - gsl_linalg_SV_{solve2,lssolve} - gsl_rstat_norm * add Lebedev quadrature (gsl_integration_lebedev) * major overhaul to the B-spline module to add new functionality - 989a193268b963aa1047814f7f1402084fb7d859.patch: removed, upstreamed OBS-URL: https://build.opensuse.org/request/show/1177587 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gsl?expand=0&rev=53
This commit is contained in:
commit
815c0e4524
@ -1,73 +0,0 @@
|
||||
From 989a193268b963aa1047814f7f1402084fb7d859 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Alken <alken@colorado.edu>
|
||||
Date: Sat, 16 Apr 2022 11:56:10 -0600
|
||||
Subject: fix for bug #59624
|
||||
|
||||
---
|
||||
NEWS | 2 ++
|
||||
statistics/quantiles.c | 1 +
|
||||
statistics/quantiles_source.c | 35 +++++++++++++++++++++--------------
|
||||
3 files changed, 24 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/statistics/quantiles.c b/statistics/quantiles.c
|
||||
index 96a3a25..50898d9 100644
|
||||
--- a/statistics/quantiles.c
|
||||
+++ b/statistics/quantiles.c
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <config.h>
|
||||
#include <gsl/gsl_statistics.h>
|
||||
+#include <gsl/gsl_errno.h>
|
||||
|
||||
#define BASE_LONG_DOUBLE
|
||||
#include "templates_on.h"
|
||||
diff --git a/statistics/quantiles_source.c b/statistics/quantiles_source.c
|
||||
index e2956d9..b2feba4 100644
|
||||
--- a/statistics/quantiles_source.c
|
||||
+++ b/statistics/quantiles_source.c
|
||||
@@ -24,22 +24,29 @@ FUNCTION(gsl_stats,quantile_from_sorted_data) (const BASE sorted_data[],
|
||||
const size_t n,
|
||||
const double f)
|
||||
{
|
||||
- const double index = f * (n - 1) ;
|
||||
- const size_t lhs = (int)index ;
|
||||
- const double delta = index - lhs ;
|
||||
- double result;
|
||||
-
|
||||
- if (n == 0)
|
||||
- return 0.0 ;
|
||||
-
|
||||
- if (lhs == n - 1)
|
||||
+ if ((f < 0.0) || (f > 1.0))
|
||||
{
|
||||
- result = sorted_data[lhs * stride] ;
|
||||
+ GSL_ERROR_VAL ("invalid quantile fraction", GSL_EDOM, 0.0);
|
||||
}
|
||||
- else
|
||||
+ else
|
||||
{
|
||||
- result = (1 - delta) * sorted_data[lhs * stride] + delta * sorted_data[(lhs + 1) * stride] ;
|
||||
- }
|
||||
+ const double index = f * (n - 1) ;
|
||||
+ const size_t lhs = (int)index ;
|
||||
+ const double delta = index - lhs ;
|
||||
+ double result;
|
||||
|
||||
- return result ;
|
||||
+ if (n == 0)
|
||||
+ return 0.0 ;
|
||||
+
|
||||
+ if (lhs == n - 1)
|
||||
+ {
|
||||
+ result = sorted_data[lhs * stride] ;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ result = (1 - delta) * sorted_data[lhs * stride] + delta * sorted_data[(lhs + 1) * stride] ;
|
||||
+ }
|
||||
+
|
||||
+ return result ;
|
||||
+ }
|
||||
}
|
||||
--
|
||||
cgit v1.1
|
||||
|
BIN
gsl-2.7.1.tar.gz
(Stored with Git LFS)
BIN
gsl-2.7.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
3
gsl-2.8.tar.gz
Normal file
3
gsl-2.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a99eeed15632c6354895b1dd542ed5a855c0f15d9ad1326c6fe2b2c9e423190
|
||||
size 8997136
|
BIN
gsl-2.8.tar.gz.sig
Normal file
BIN
gsl-2.8.tar.gz.sig
Normal file
Binary file not shown.
29
gsl.changes
29
gsl.changes
@ -1,3 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 29 12:44:56 UTC 2024 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
- update to gsl 2.8:
|
||||
* updated multilarge TSQR method to store ||z_2|| and
|
||||
provide it to the user
|
||||
* add routines for Hermite B-spline interpolation
|
||||
* add functions:
|
||||
- gsl_matrix_complex_conjugate
|
||||
- gsl_vector_complex_conj_memcpy
|
||||
- gsl_vector_complex_div_real
|
||||
- gsl_linalg_QR_lssolvem_r
|
||||
- gsl_linalg_complex_QR_lssolvem_r
|
||||
- gsl_linalg_complex_QR_QHmat_r
|
||||
- gsl_linalg_QR_UR_lssolve
|
||||
- gsl_linalg_QR_UR_lssvx
|
||||
- gsl_linalg_QR_UR_QTvec
|
||||
- gsl_linalg_QR_UU_lssvx
|
||||
- gsl_linalg_QR_UD_lssvx
|
||||
- gsl_linalg_QR_UD_QTvec
|
||||
- gsl_linalg_complex_cholesky_{decomp2,svx2,solve2,scale,scale_apply}
|
||||
- gsl_linalg_SV_{solve2,lssolve}
|
||||
- gsl_rstat_norm
|
||||
* add Lebedev quadrature (gsl_integration_lebedev)
|
||||
* major overhaul to the B-spline module to add
|
||||
new functionality
|
||||
|
||||
- 989a193268b963aa1047814f7f1402084fb7d859.patch: removed, upstreamed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 27 11:13:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
16
gsl.spec
16
gsl.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package gsl
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,9 +19,9 @@
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
|
||||
%define pname gsl
|
||||
%define vers 2.7.1
|
||||
%define _vers 2_7_1
|
||||
%define lgsl_so_v 27
|
||||
%define vers 2.8
|
||||
%define _vers 2_8_0
|
||||
%define lgsl_so_v 28
|
||||
%define lgslcblas_so_v 0
|
||||
|
||||
%if "%{flavor}" == ""
|
||||
@ -122,7 +122,6 @@ Source1: https://ftp.gnu.org/pub/gnu/%{pname}/%{pname}-%{version}.tar.gz.
|
||||
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=gsl&download=1#/%{pname}.keyring
|
||||
Patch6: gsl-qawc-test-x86-precision.diff
|
||||
Patch7: gsl-disable-fma.patch
|
||||
Patch8: 989a193268b963aa1047814f7f1402084fb7d859.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
@ -131,7 +130,7 @@ BuildRequires: pkgconfig
|
||||
%if %{without hpc}
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
%else
|
||||
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
|
||||
BuildRequires: lua-lmod
|
||||
@ -219,7 +218,7 @@ high level languages.
|
||||
Summary: Documentation for the GNU Scientific Library
|
||||
Group: Documentation/Other
|
||||
Requires(post): %{install_info_prereq}
|
||||
Requires(preun):%{install_info_prereq}
|
||||
Requires(preun): %{install_info_prereq}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
@ -260,7 +259,6 @@ library packages.
|
||||
%setup -q -n %{pname}-%{version}
|
||||
%patch -P 6
|
||||
%patch -P 7 -p1
|
||||
%patch -P 8 -p1
|
||||
|
||||
%build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user