numo-linalg-randsvd 0.2.1 → 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: 6124cfa5d92e207e25176f5a76c10edf7efe094c7467b38bedaef3221ebf1125
4
- data.tar.gz: c38604617b8dc031414205bd2359ecf54ceeac3d496cdd6c28b1e35b049baf88
3
+ metadata.gz: 54197940689661dde76b8173396cd1ce16c0b01762b35b34eed370000bf05afe
4
+ data.tar.gz: d62d131b087e0250af6a1afbc2fd3268d42c1fb043b31e9efa55a5f7313bd1bc
5
5
  SHA512:
6
- metadata.gz: '04126899d6e0fdf582778a435d027380eaaff1eb6826614220dce3533f8e055ed518e3128e7bf822fe52e766858ea45ab08badb57d3f6ae83d92911e55abd056'
7
- data.tar.gz: be04847c850344d151508bcd5a6051da2bd373480fdc8a2c91fd9e4403b41e8bc2ede31932aefa29f8271c7c3b1f4786f4a164593d04e773d63e041d1fce2aa9
6
+ metadata.gz: aae03d1319d5dbdeda0755ec22961cef75c8f6b369f48a1d8e9dc07506f71b52fd4ceacf8b04926ee00762f9d4b32800ea9bf2741e9076ebcbbede6f7e03e58c
7
+ data.tar.gz: 05ea844bb64fcce21033cf5304b1b8925b91d98b1f7b11971942ce4b62c49357fdaebe160cabfd00d06a7fee629214cebdfc6e793487b3e14bec4cec60f050c1
data/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
- ## [0.2.1] - 2022-11-2022
1
+ ## [0.4.0] - 2025-10-02
2
+ **Breaking Changes**
3
+
4
+ - Change dependency from numo-narray to [numo-narray-alt](https://github.com/yoshoku/numo-narray-alt).
5
+ - Add [numo-linalg-alt](https://github.com/yoshoku/numo-linalg-alt) to runtime dependencies.
6
+
7
+ ## [0.3.0] - 2023-08-15
8
+ **Breaking Changes**
9
+
10
+ - Remove numo-linalg from runtime dependencies so that users can also choose to use Numo::TinyLinalg.
11
+
12
+ ## [0.2.1] - 2022-11-20
2
13
 
3
14
  - Fix dependent version of numo-random.
4
15
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Atsushi Tatsuma
1
+ Copyright (c) 2022-2025 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -3,12 +3,14 @@
3
3
  [![Build Status](https://github.com/yoshoku/numo-linalg-randsvd/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/yoshoku/numo-linalg-randsvd/actions/workflows/main.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/numo-linalg-randsvd.svg)](https://badge.fury.io/rb/numo-linalg-randsvd)
5
5
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-linalg-randsvd/blob/main/LICENSE.txt)
6
- [![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/numo-linalg-randsvd/doc/)
6
+ [![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://gemdocs.org/gems/numo-linalg-randsvd/)
7
7
 
8
8
  Numo::Linalg.randsvd is a module function on Numo::Linalg for truncated singular value decomposition with randomized algorithm.
9
9
  This gem re-implements [RandSVD](https://github.com/yoshoku/randsvd) using [Numo::NArray](https://github.com/ruby-numo/numo-narray) and
10
10
  [Numo::Linalg](https://github.com/ruby-numo/numo-linalg) instead of [NMatrix](https://github.com/SciRuby/nmatrix).
11
11
 
12
+ Note: Since v0.4.0, this gem uses [Numo::NArray Alternative](https://github.com/yoshoku/numo-narray-alt) instead of Numo::NArray as a dependency.
13
+
12
14
  References:
13
15
 
14
16
  - P.-G. Martinsson, A. Szlam, M. Tygert, "Normalized power iterations for the computation of SVD," Proc. of NIPS Workshop on Low-Rank Methods for Large-Scale Machine Learning, 2011.
@@ -33,7 +35,6 @@ Or install it yourself as:
33
35
  ## Usage
34
36
 
35
37
  ```ruby
36
- require 'numo/linalg/autoloader'
37
38
  require 'numo/linalg/randsvd'
38
39
 
39
40
  # An example of matrix decomposition is as follows:
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'numo/narray'
4
+ require 'numo/linalg'
4
5
  require 'numo/random'
5
6
 
6
7
  # Ruby/Numo (NUmerical MOdules)
metadata CHANGED
@@ -1,57 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-linalg-randsvd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
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: 2022-11-20 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
- name: numo-linalg
13
+ name: numo-linalg-alt
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 0.1.4
18
+ version: 0.2.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - ">="
23
+ - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 0.1.4
25
+ version: 0.2.0
27
26
  - !ruby/object:Gem::Dependency
28
- name: numo-narray
27
+ name: numo-narray-alt
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: 0.9.1
32
+ version: 0.9.3
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
- - - ">="
37
+ - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: 0.9.1
39
+ version: 0.9.3
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: numo-random
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '0.4'
46
+ version: 0.6.0
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '0.4'
53
+ version: 0.6.0
55
54
  description: |
56
55
  Numo::Linalg.randsvd is a module function on Numo::Linalg for
57
56
  truncated singular value decomposition with randomized algorithm.
@@ -73,9 +72,8 @@ metadata:
73
72
  homepage_uri: https://github.com/yoshoku/numo-linalg-randsvd
74
73
  source_code_uri: https://github.com/yoshoku/numo-linalg-randsvd
75
74
  changelog_uri: https://github.com/yoshoku/numo-linalg-randsvd/blob/main/CHANGELOG.md
76
- documentation_uri: https://yoshoku.github.io/numo-linalg-randsvd/doc/
75
+ documentation_uri: https://gemdocs.org/gems/numo-linalg-randsvd/0.4.0/
77
76
  rubygems_mfa_required: 'true'
78
- post_install_message:
79
77
  rdoc_options: []
80
78
  require_paths:
81
79
  - lib
@@ -90,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
88
  - !ruby/object:Gem::Version
91
89
  version: '0'
92
90
  requirements: []
93
- rubygems_version: 3.3.7
94
- signing_key:
91
+ rubygems_version: 3.6.9
95
92
  specification_version: 4
96
93
  summary: Numo::Linalg.randsvd is a module function on Numo::Linalg for truncated singular
97
94
  value decomposition with randomized algorithm.