lbfgsb 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/LICENSE.txt +1 -1
- data/ext/lbfgsb/extconf.rb +6 -0
- data/lib/lbfgsb/version.rb +1 -1
- metadata +3 -7
- data/sig/lbfgsb.rbs +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c3f33196eb938f4a0cc9d2a7bd1e127c72a4cc5475ed196759564cd3dac6d47
|
4
|
+
data.tar.gz: 04acc17d38ec7d4414b68a23fc76191419473062dc83c73f0116af35f66381e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7154033adc39528214e267499b28d1fb2d93d60fe2207a30d6b5c1a27ac525d54f59be970412fed52ccecebe44b5aaf32cdd93d8a8e6d2a153de1c872d7912b5
|
7
|
+
data.tar.gz: 0b9257fe60ea07b15d5a5d68e7ab6aeaac47aaa112d3daa091c5e6c88835f357f0c8223c209541c61164577f3ab0da1061a519c28e2ad1fa0c03ea61f14b2557
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/ext/lbfgsb/extconf.rb
CHANGED
@@ -33,6 +33,12 @@ $srcs = Dir.glob("#{$srcdir}/**/*.c").map { |path| File.basename(path) }
|
|
33
33
|
blas_dir = with_config('blas-dir')
|
34
34
|
$LDFLAGS = "-L#{blas_dir} #{$LDFLAGS}" unless blas_dir.nil?
|
35
35
|
|
36
|
+
if RUBY_PLATFORM.match?(/darwin/) && Gem::Version.new('3.1.0') <= Gem::Version.new(RUBY_VERSION)
|
37
|
+
if try_link('int main(void){return 0;}', '-Wl,-undefined,dynamic_lookup')
|
38
|
+
$LDFLAGS << ' -Wl,-undefined,dynamic_lookup'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
36
42
|
blas_lib = with_config('blas-lib')
|
37
43
|
unless blas_lib.nil?
|
38
44
|
abort "#{blas_lib} not found." unless have_library(blas_lib)
|
data/lib/lbfgsb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lbfgsb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: numo-narray
|
@@ -50,7 +49,6 @@ files:
|
|
50
49
|
- ext/lbfgsb/src/linpack.h
|
51
50
|
- lib/lbfgsb.rb
|
52
51
|
- lib/lbfgsb/version.rb
|
53
|
-
- sig/lbfgsb.rbs
|
54
52
|
homepage: https://github.com/yoshoku/lbfgsb.rb
|
55
53
|
licenses:
|
56
54
|
- BSD-3-Clause
|
@@ -60,7 +58,6 @@ metadata:
|
|
60
58
|
changelog_uri: https://github.com/yoshoku/lbfgsb.rb/blob/main/CHANGELOG.md
|
61
59
|
documentation_uri: https://yoshoku.github.io/lbfgsb.rb/doc/
|
62
60
|
rubygems_mfa_required: 'true'
|
63
|
-
post_install_message:
|
64
61
|
rdoc_options: []
|
65
62
|
require_paths:
|
66
63
|
- lib
|
@@ -75,8 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
72
|
- !ruby/object:Gem::Version
|
76
73
|
version: '0'
|
77
74
|
requirements: []
|
78
|
-
rubygems_version: 3.2
|
79
|
-
signing_key:
|
75
|
+
rubygems_version: 3.6.2
|
80
76
|
specification_version: 4
|
81
77
|
summary: Lbfgsb.rb is a Ruby binding for L-BFGS-B.
|
82
78
|
test_files: []
|
data/sig/lbfgsb.rbs
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
module Lbfgsb
|
2
|
-
type result = {
|
3
|
-
task: String,
|
4
|
-
x: Numo::DFloat,
|
5
|
-
fnc: Float,
|
6
|
-
jcb: Numo::DFloat,
|
7
|
-
n_iter: Integer,
|
8
|
-
n_fev: Integer,
|
9
|
-
n_jev: Integer,
|
10
|
-
success: bool
|
11
|
-
}
|
12
|
-
|
13
|
-
VERSION: String
|
14
|
-
|
15
|
-
DBL_EPSILON: Float
|
16
|
-
|
17
|
-
def self?.minimize: (fnc: Method | Proc fnc, x_init: Numo::DFloat x_init, jcb: Method | Proc | bool jcb,
|
18
|
-
?args: untyped args, ?bounds: Numo::DFloat? bounds, ?factr: Float factr, ?pgtol: Float pgtol,
|
19
|
-
?maxcor: Integer maxcor, ?maxiter: Integer maxiter,
|
20
|
-
?verbose: Integer? verbose) -> result
|
21
|
-
|
22
|
-
private
|
23
|
-
|
24
|
-
def self?.fnc: (Method | Proc fnc, Numo::DFloat x, untyped args) -> Float
|
25
|
-
|
26
|
-
def self?.jcb: (Method | Proc jcb, Numo::DFloat x, untyped args) -> Numo::DFloat
|
27
|
-
|
28
|
-
def self?.min_l_bfgs_b: (Method | Proc fnc, Numo::DFloat x, Method | Proc | bool jcb, untyped args,
|
29
|
-
Numo::DFloat l, Numo::DFloat u, Numo::DFloat nbd, Integer maxcor, Float ftol, Float gtol, Integer maxiter,
|
30
|
-
Integer? disp) -> result
|
31
|
-
end
|