numo-optimize 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5bf17fec048bdf99094a8885389a99b41460947c008d213e11c371ee0025792
4
- data.tar.gz: 50346f22f0db6c04e33b5096f243a234e645fc2690789267d853c73918555a10
3
+ metadata.gz: 889b6b59f1dac42181a5eb4498eb2834676756ad4db4928f37e078260c817383
4
+ data.tar.gz: f6f9ece1dd4601d7620eab11f1b0f21fba732660b94fcecd4296b9b7e756ff65
5
5
  SHA512:
6
- metadata.gz: 99b8f8600c23d3f55695ec9baf9ddeb3e00ff294fe73a6fec3a82f201b25894202dc96f3cc49b0f8455f1a703628c70f873a683351037dcbe7093472ac6fba7b
7
- data.tar.gz: e95043ecd9e6b497aeb6fcedfe3fe6c9bcad124d45e5cecd89a7bda4ecf2bdb81041c5400667e0607033f3d61ac3a7b773b57518a5571b425041f1d53c90809a
6
+ metadata.gz: 75a3cbc003b508d89a001c0fc5f01956d2ecc718d5a573e25a71de4f5ceec27faac3f34dce845c762937e9ff5b876f0bcfbdd086fff3261024b7c1874072b81f
7
+ data.tar.gz: 10982a996f65b756e52b82d08aa33194768b9dad7f50a20174e135442f1c64de6053fe2289a5e5680d04016af058c32eba46ca758f35e959c991501d794f5a84
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [[0.2.1](https://github.com/yoshoku/numo-optimize/compare/v0.2.0...v0.2.1)] - 2025-11-18
2
+
3
+ - Set the required version of numo-narray-alt to 0.9.9 or higher.
4
+ - Change require statement to explicitly load numo/narray/alt.
5
+
1
6
  ## [[0.2.0](https://github.com/yoshoku/numo-optimize/compare/v0.1.0...v0.2.0)] - 2025-10-03
2
7
 
3
8
  - Add the scaled conjugate gradient method for minimization method:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'mkmf'
4
- require 'numo/narray'
4
+ require 'numo/narray/alt'
5
5
 
6
6
  $LOAD_PATH.each do |lp|
7
7
  if File.exist?(File.join(lp, 'numo/numo/narray.h'))
@@ -14,8 +14,8 @@ abort 'numo/narray.h not found.' unless have_header('numo/narray.h')
14
14
 
15
15
  if RUBY_PLATFORM.match?(/mswin|cygwin|mingw/)
16
16
  $LOAD_PATH.each do |lp|
17
- if File.exist?(File.join(lp, 'numo/libnarray.a'))
18
- $LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}"
17
+ if File.exist?(File.join(lp, 'numo/narray/libnarray.a'))
18
+ $LDFLAGS = "-L#{lp}/numo/narray #{$LDFLAGS}"
19
19
  break
20
20
  end
21
21
  end
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::Optimize provides functions for minimizing objective functions.
6
6
  module Optimize
7
7
  # The version of numo-optimize you install.
8
- VERSION = '0.2.0'
8
+ VERSION = '0.2.1'
9
9
  end
10
10
  end
data/lib/numo/optimize.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'numo/narray'
3
+ require 'numo/narray/alt'
4
4
 
5
5
  require_relative 'optimize/version'
6
6
  require_relative 'optimize/optimize'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-optimize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.9.3
18
+ version: 0.9.9
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.9.3
25
+ version: 0.9.9
26
26
  description: Numo::Optimize provides functions for minimizing objective functions.
27
27
  email:
28
28
  - yoshoku@outlook.com
@@ -59,7 +59,7 @@ metadata:
59
59
  homepage_uri: https://github.com/yoshoku/numo-optimize
60
60
  source_code_uri: https://github.com/yoshoku/numo-optimize
61
61
  changelog_uri: https://github.com/yoshoku/numo-optimize/blob/main/CHANGELOG.md
62
- documentation_uri: https://gemdocs.org/gems/numo-optimize/0.2.0/
62
+ documentation_uri: https://gemdocs.org/gems/numo-optimize/0.2.1/
63
63
  rubygems_mfa_required: 'true'
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.6.9
78
+ rubygems_version: 3.7.2
79
79
  specification_version: 4
80
80
  summary: Numo::Optimize provides functions for minimizing objective functions.
81
81
  test_files: []