numo-tiny_linalg 0.3.8 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb204dd3c65d588ffb42018d62e1dedb13a55bf2f97e16b7b31c0e8721ded4ee
4
- data.tar.gz: 9ccc3cb60073776f684fad8be20169fd7ca912f81293deae2700ce60802ee4ca
3
+ metadata.gz: 9106b22c189141a3e61290e2015726299cc8fc46b80a0155e9b0f848ceb29370
4
+ data.tar.gz: 7a8dd56ecfbb80e74dec6f42e8a14f20bb7f6a2f3f5303eb23b83a1b08158032
5
5
  SHA512:
6
- metadata.gz: 417dc5ba3f93b64a231ac6d04384d3dbac576785fe18c61ce69e55ac53067208c8bc8540fc8a7b8e8be80022a26b72842d120e2ce9612841bbccb5696e2c1cf3
7
- data.tar.gz: c2c27b86d6fdb355f80615e1f187fca1f19fa6abe0ddee857392a336daa3c336ccdd5174eb5cdbc104349e3d713aa96e0afa6368b2a591a32b05d4c9bb2545b4
6
+ metadata.gz: d5ff9c3a9d5e00bfbf2770e4c1bd56da741a5befe4875cd919e10446b21282f7f6d618f7992b1da851809b203e40ba77ab86f3e3f504f88ef5c6e5421428480d
7
+ data.tar.gz: 4e5ba2f94e1ff75157cc72520894b4088a794e5a84ff2a9498019b789c3a130c4955edcfb3e4b38be5f7278a80e75ee6576df9a73b1c42449b067183e67752b9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [[0.4.0](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.9...v0.4.0)] - 2025-04-27
4
+
5
+ - Add `shared` target to make command of OpenBLAS for reducing build time.
6
+
7
+ ## [[0.3.9](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.8...v0.3.9)] - 2025-01-13
8
+
9
+ - Bump OpenBLAS to be downloaded from 0.3.28 to 0.3.29.
10
+
3
11
  ## [[0.3.8](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.7...v0.3.8)] - 2024-08-11
4
12
 
5
13
  - Bump OpenBLAS to be downloaded from 0.3.27 to 0.3.28.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023-2024 Atsushi Tatsuma
1
+ Copyright (c) 2023-2025 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -46,8 +46,8 @@ if build_openblas
46
46
 
47
47
  VENDOR_DIR = File.expand_path("#{__dir__}/../../../vendor")
48
48
  TINYLINALG_DIR = File.expand_path("#{__dir__}/../../../lib/numo/tiny_linalg")
49
- OPENBLAS_VER = '0.3.28'
50
- OPENBLAS_KEY = '0f54185b6ef804173c01b9a40520a0e8'
49
+ OPENBLAS_VER = '0.3.29'
50
+ OPENBLAS_KEY = '853a0c5c0747c5943e7ef4bbb793162d'
51
51
  OPENBLAS_URI = "https://github.com/OpenMathLib/OpenBLAS/archive/v#{OPENBLAS_VER}.tar.gz"
52
52
  OPENBLAS_TGZ = "#{VENDOR_DIR}/tmp/openblas.tgz"
53
53
 
@@ -69,7 +69,7 @@ if build_openblas
69
69
  end
70
70
 
71
71
  Dir.chdir("#{VENDOR_DIR}/tmp/OpenBLAS-#{OPENBLAS_VER}") do
72
- mkstdout, _mkstderr, mkstatus = Open3.capture3("make -j#{Etc.nprocessors}")
72
+ mkstdout, _mkstderr, mkstatus = Open3.capture3("make -j#{Etc.nprocessors} shared")
73
73
  File.open("#{VENDOR_DIR}/tmp/openblas.log", 'w') { |f| f.puts(mkstdout) }
74
74
  abort("Failed to build OpenBLAS. Check the openblas.log file for more details: #{VENDOR_DIR}/tmp/openblas.log") unless mkstatus.success?
75
75
 
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::TinyLinalg is a subset library from Numo::Linalg consisting only of methods used in Machine Learning algorithms.
6
6
  module TinyLinalg
7
7
  # The version of Numo::TinyLinalg you install.
8
- VERSION = '0.3.8'
8
+ VERSION = '0.4.0'
9
9
  end
10
10
  end
@@ -180,7 +180,7 @@ module Numo
180
180
  end
181
181
  end
182
182
 
183
- raise ArgumentError, "the number of dimensions of axis is inappropriate for the norm: #{axis.size}" unless axis.size == 1 || axis.size == 2
183
+ raise ArgumentError, "the number of dimensions of axis is inappropriate for the norm: #{axis.size}" unless [1, 2].include?(axis.size)
184
184
  raise ArgumentError, "axis is out of range: #{axis}" unless axis.all? { |ax| (-a.ndim...a.ndim).cover?(ax) }
185
185
 
186
186
  if axis.size == 1
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-tiny_linalg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-08-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: numo-narray
@@ -84,7 +83,6 @@ metadata:
84
83
  changelog_uri: https://github.com/yoshoku/numo-tiny_linalg/blob/main/CHANGELOG.md
85
84
  documentation_uri: https://yoshoku.github.io/numo-tiny_linalg/doc/
86
85
  rubygems_mfa_required: 'true'
87
- post_install_message:
88
86
  rdoc_options: []
89
87
  require_paths:
90
88
  - lib
@@ -99,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
97
  - !ruby/object:Gem::Version
100
98
  version: '0'
101
99
  requirements: []
102
- rubygems_version: 3.5.9
103
- signing_key:
100
+ rubygems_version: 3.6.7
104
101
  specification_version: 4
105
102
  summary: Numo::TinyLinalg is a subset library from Numo::Linalg consisting only of
106
103
  methods used in Machine Learning algorithms.