numo-tiny_linalg 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE.txt +1 -1
- data/ext/numo/tiny_linalg/extconf.rb +2 -2
- data/ext/numo/tiny_linalg/tiny_linalg.cpp +1 -1
- data/ext/numo/tiny_linalg/tiny_linalg.hpp +1 -1
- data/lib/numo/tiny_linalg/version.rb +1 -1
- data/lib/numo/tiny_linalg.rb +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9165d44ad74a388e32e08564402c255b238ac80dc66655d264ce5074b6d9ae66
|
4
|
+
data.tar.gz: d679aae9036c5da1ebb72854b554438dc201dd7d95376c381647513acb4ce5f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6c2fdebcd684b07a29dfa3650a33da81f3a0339a90ddc17c872876854cc7c4b8fc42c7feaf932501b212fc4f6a460e871ff23aba776e8e97127e6af2d51f0e
|
7
|
+
data.tar.gz: 56b0db97799b6e5c41f67503bc20d2fb08868b9a53a64a7a5a919b29791a61f08749c03f54190a238e84dd8e3f3aac44a2ac4bdb8d7e53d50e3491f7c9874f7e
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,7 @@
|
|
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.
|
2
5
|
|
3
6
|
## [[0.3.4](https://github.com/yoshoku/numo-tiny_linalg/compare/v0.3.3...v0.3.4)] - 2023-11-19
|
4
7
|
- Bump OpenBLAS to be downloaded from 0.3.24 to 0.3.25.
|
data/LICENSE.txt
CHANGED
@@ -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.
|
50
|
-
OPENBLAS_KEY = '
|
49
|
+
OPENBLAS_VER = '0.3.26'
|
50
|
+
OPENBLAS_KEY = 'bd496a1c81769ed19a161c1f8f904ccd'
|
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
|
|
data/lib/numo/tiny_linalg.rb
CHANGED
@@ -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"
|
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"
|
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"
|
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"
|
252
|
-
getri = "#{bchr}getri"
|
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"
|
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"
|
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"
|
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"
|
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"
|
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.
|
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:
|
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.
|
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
|