forked from pool/ensmallen
* Fix numerical precision issues for small-gradient L-BFGS scaling factor computations (#392). * Ensure the tests are built with optimisation enabled * Clarify return values for different callback types * Fix return types of callbacks * Minor cleanup for printing optimization reports via `Report()` * Avoid deprecation warnings in Armadillo 11.2+ - Update to version 2.12.1 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ensmallen?expand=0&rev=12
76 lines
2.4 KiB
RPMSpec
76 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package ensmallen
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2020 Markus Kolb <novell+ensmallen@tower-net.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ensmallen
|
|
Version: 2.21.1
|
|
Release: 0
|
|
Summary: Math optimization C++ library
|
|
License: BSD-3-Clause AND MPL-2.0 AND BSL-1.0
|
|
Group: Development/Languages/C and C++
|
|
URL: https://ensmallen.org
|
|
Source0: https://ensmallen.org/files/ensmallen-%{version}.tar.gz
|
|
BuildRequires: armadillo-devel >= 9.800.6
|
|
BuildRequires: cmake >= 3.3.2
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: make
|
|
Recommends: armadillo-devel >= 9.800.6
|
|
|
|
%description
|
|
ensmallen provides a set of abstractions for writing an objective
|
|
function to optimize. It also provides a set of standard and
|
|
optimizers that can be used for mathematical optimization tasks.
|
|
These include full-batch gradient descent techniques, small-batch
|
|
techniques, gradient-free optimizers, and constrained optimization.
|
|
|
|
%package devel
|
|
Summary: Math optimization C++ library
|
|
Group: Development/Languages/C and C++
|
|
|
|
%description devel
|
|
ensmallen provides a set of abstractions for writing an objective
|
|
function to optimize. It also provides a set of standard and
|
|
optimizers that can be used for mathematical optimization tasks.
|
|
These include full-batch gradient descent techniques, small-batch
|
|
techniques, gradient-free optimizers, and constrained optimization.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake -DENSMALLEN_CMAKE_DIR=%{_libdir}/cmake/ensmallen/
|
|
# Build the tests
|
|
%cmake_build ensmallen_tests
|
|
|
|
%install
|
|
%cmake_install
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%files devel
|
|
%license COPYRIGHT.txt
|
|
%license LICENSE.txt
|
|
%{_includedir}/ensmallen.hpp
|
|
%{_includedir}/ensmallen_bits
|
|
%{_libdir}/cmake/ensmallen/
|
|
|
|
%changelog
|