numo-tiny_linalg 0.3.3 → 0.3.5

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: d37da5bae8e6c01756da489bd80912f9ece5174bfffc5f0b229571fd3fc361ae
4
- data.tar.gz: dc0760b99d157b8ef8acbfd39171e3a8edf82c9055217b9a798b543c5d295dde
3
+ metadata.gz: 9165d44ad74a388e32e08564402c255b238ac80dc66655d264ce5074b6d9ae66
4
+ data.tar.gz: d679aae9036c5da1ebb72854b554438dc201dd7d95376c381647513acb4ce5f7
5
5
  SHA512:
6
- metadata.gz: ce0679d7053e38e23f0e7def844addf1042960cf2a7e92552106185b2c51192c65bf192a117ccf7904e5b7abf5b02180b17a2224ab090a426627ee8a2cbe128c
7
- data.tar.gz: 4015334a3ac6ca5700aea0a3dce5691090f918fbf111e7c8b11f94e37d8dc6725df5d6d7c35e92d76e4b0fc16228037feb862b959352fa01f6e94561c0970f76
6
+ metadata.gz: dc6c2fdebcd684b07a29dfa3650a33da81f3a0339a90ddc17c872876854cc7c4b8fc42c7feaf932501b212fc4f6a460e871ff23aba776e8e97127e6af2d51f0e
7
+ data.tar.gz: 56b0db97799b6e5c41f67503bc20d2fb08868b9a53a64a7a5a919b29791a61f08749c03f54190a238e84dd8e3f3aac44a2ac4bdb8d7e53d50e3491f7c9874f7e
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  ## [Unreleased]
2
+ ## [[0.3.5](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.4...v0.3.5)] - 2024-01-03
3
+ - Bump OpenBLAS to be downloaded from 0.3.25 to 0.3.26.
4
+ - Minor changes using RuboCop.
5
+
6
+ ## [[0.3.4](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.3...v0.3.4)] - 2023-11-19
7
+ - Bump OpenBLAS to be downloaded from 0.3.24 to 0.3.25.
2
8
 
3
9
  ## [[0.3.3](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.2...v0.3.3)] - 2023-09-27
4
10
  - Remove unnecessary `-std=c++11` option.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023 Atsushi Tatsuma
1
+ Copyright (c) 2023-2024 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -46,9 +46,9 @@ 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.24'
50
- OPENBLAS_KEY = '23599a30e4ce887590957d94896789c8'
51
- OPENBLAS_URI = "https://github.com/xianyi/OpenBLAS/archive/v#{OPENBLAS_VER}.tar.gz"
49
+ OPENBLAS_VER = '0.3.26'
50
+ OPENBLAS_KEY = 'bd496a1c81769ed19a161c1f8f904ccd'
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
 
54
54
  unless File.exist?("#{VENDOR_DIR}/installed_#{OPENBLAS_VER}")
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2023 Atsushi Tatsuma
2
+ * Copyright (c) 2023-2024 Atsushi Tatsuma
3
3
  * All rights reserved.
4
4
  *
5
5
  * Redistribution and use in source and binary forms, with or without
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2023 Atsushi Tatsuma
2
+ * Copyright (c) 2023-2024 Atsushi Tatsuma
3
3
  * All rights reserved.
4
4
  *
5
5
  * Redistribution and use in source and binary forms, with or without
@@ -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.3'
8
+ VERSION = '0.3.5'
9
9
  end
10
10
  end
@@ -138,7 +138,7 @@ module Numo
138
138
  bchr = blas_char(a)
139
139
  raise ArgumentError, "invalid array type: #{a.class}" if bchr == 'n'
140
140
 
141
- fnc = "#{bchr}potrf".to_sym
141
+ fnc = :"#{bchr}potrf"
142
142
  c, _info = Numo::TinyLinalg::Lapack.send(fnc, a.dup, uplo: uplo)
143
143
 
144
144
  case uplo
@@ -180,7 +180,7 @@ module Numo
180
180
  bchr = blas_char(a, b)
181
181
  raise ArgumentError, "invalid array type: #{a.class}" if bchr == 'n'
182
182
 
183
- fnc = "#{bchr}potrs".to_sym
183
+ fnc = :"#{bchr}potrs"
184
184
  x, _info = Numo::TinyLinalg::Lapack.send(fnc, a, b.dup, uplo: uplo)
185
185
  x
186
186
  end
@@ -205,7 +205,7 @@ module Numo
205
205
  bchr = blas_char(a)
206
206
  raise ArgumentError, "invalid array type: #{a.class}" if bchr == 'n'
207
207
 
208
- getrf = "#{bchr}getrf".to_sym
208
+ getrf = :"#{bchr}getrf"
209
209
  lu, piv, info = Numo::TinyLinalg::Lapack.send(getrf, a.dup)
210
210
 
211
211
  if info.zero?
@@ -248,8 +248,8 @@ module Numo
248
248
  bchr = blas_char(a)
249
249
  raise ArgumentError, "invalid array type: #{a.class}" if bchr == 'n'
250
250
 
251
- getrf = "#{bchr}getrf".to_sym
252
- getri = "#{bchr}getri".to_sym
251
+ getrf = :"#{bchr}getrf"
252
+ getri = :"#{bchr}getri"
253
253
 
254
254
  lu, piv, info = Numo::TinyLinalg::Lapack.send(getrf, a.dup)
255
255
  if info.zero?
@@ -336,7 +336,7 @@ module Numo
336
336
  bchr = blas_char(a)
337
337
  raise ArgumentError, "invalid array type: #{a.class}" if bchr == 'n'
338
338
 
339
- geqrf = "#{bchr}geqrf".to_sym
339
+ geqrf = :"#{bchr}geqrf"
340
340
  qr, tau, = Numo::TinyLinalg::Lapack.send(geqrf, a.dup)
341
341
 
342
342
  return [qr, tau] if mode == 'raw'
@@ -346,7 +346,7 @@ module Numo
346
346
 
347
347
  return r if mode == 'r'
348
348
 
349
- org_ung_qr = %w[d s].include?(bchr) ? "#{bchr}orgqr".to_sym : "#{bchr}ungqr".to_sym
349
+ org_ung_qr = %w[d s].include?(bchr) ? :"#{bchr}orgqr" : :"#{bchr}ungqr"
350
350
 
351
351
  q = if m < n
352
352
  Numo::TinyLinalg::Lapack.send(org_ung_qr, qr[true, 0...m], tau)[0]
@@ -395,7 +395,7 @@ module Numo
395
395
  bchr = blas_char(a, b)
396
396
  raise ArgumentError, "invalid array type: #{a.class}, #{b.class}" if bchr == 'n'
397
397
 
398
- gesv = "#{bchr}gesv".to_sym
398
+ gesv = :"#{bchr}gesv"
399
399
  Numo::TinyLinalg::Lapack.send(gesv, a.dup, b.dup)[1]
400
400
  end
401
401
 
@@ -443,10 +443,10 @@ module Numo
443
443
 
444
444
  case driver.to_s
445
445
  when 'sdd'
446
- gesdd = "#{bchr}gesdd".to_sym
446
+ gesdd = :"#{bchr}gesdd"
447
447
  s, u, vt, info = Numo::TinyLinalg::Lapack.send(gesdd, a.dup, jobz: job)
448
448
  when 'svd'
449
- gesvd = "#{bchr}gesvd".to_sym
449
+ gesvd = :"#{bchr}gesvd"
450
450
  s, u, vt, info = Numo::TinyLinalg::Lapack.send(gesvd, a.dup, jobu: job, jobvt: job)
451
451
  else
452
452
  raise ArgumentError, "invalid driver: #{driver}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-tiny_linalg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.4.19
100
+ rubygems_version: 3.4.22
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Numo::TinyLinalg is a subset library from Numo::Linalg consisting only of