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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d640eb16ee97cc31ec5a5c15d9600b9cd3b01395954e5fab80110251445ff56b
4
- data.tar.gz: 5133899439b92170f1cffd13a3ce10f792ce5e4434e733d7767b88a7ce3f30a2
3
+ metadata.gz: 9165d44ad74a388e32e08564402c255b238ac80dc66655d264ce5074b6d9ae66
4
+ data.tar.gz: d679aae9036c5da1ebb72854b554438dc201dd7d95376c381647513acb4ce5f7
5
5
  SHA512:
6
- metadata.gz: d53553a0e5aabb16012377acaf2b1b3ff47e039dad2f44ec7c70a8e62a038153366b1b5a6d57a7d2c6e44c5ffb991d29132f3eda3a0cb6ff38987b117f7f6ccb
7
- data.tar.gz: e8fa35b07eac5f69d4a1a98118cb34bc2cbcfd506852659b0c4a59990a047326348b5d7a612940fb861b635d03ec4efa4420302f01f616f979b58b63b965defa
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
@@ -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,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.25'
50
- OPENBLAS_KEY = '48384e324cd1cdcfbdb0d2e16ca55327'
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
 
@@ -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.4'
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.4
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-11-19 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.20
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