randsvd 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 42e2420ac7552a875700b488d8e4092099ab21d7
4
- data.tar.gz: b40b493e5c098d4dadf55f8785341994d79a8c9c
3
+ metadata.gz: d2c9e241646eaca8d1efb45ad72b3662b31b9887
4
+ data.tar.gz: fcb5fc76673874d947fcd7094ceda6ec954fe025
5
5
  SHA512:
6
- metadata.gz: 27547f5946df8b5de0a635b57539c5d6d8b10fb799f18033555c82e250888631e8e62e18a9fc893efed7342da48d59a5633076918704c1399b1439699669552a
7
- data.tar.gz: bbfc6b7c32cef81528fa24827ebb841e65c00c92466c5aefd6f07754bb7d680daca68baa74217c15f4d39b86e2c07b53071b7b2c5c20da31b8ef246ab63db2a9
6
+ metadata.gz: 1a780bb65d483996b492c8c0123379c9b917c60699c60a51f905a0a64d00d27c2a36ff22b0b933fbb549fbdfdd96657c058c418569b08dcb6a35f232c980e208
7
+ data.tar.gz: 144eac0afa622d5fa7613e1403f4fdc88125fcbbabbced72775be41b0f6fd44193da8c496c2d09fdc3a6d33b646b2a1f74300d7c2373f36a33b8e850ead538b3
@@ -1,5 +1,14 @@
1
1
  sudo: false
2
+ os: linux
3
+ dist: trusty
2
4
  language: ruby
3
5
  rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.15.3
6
+ - 2.2.9
7
+ before_install:
8
+ - gem install --no-document bundler -v '~> 1.16'
9
+ addons:
10
+ apt:
11
+ packages:
12
+ - liblapack-dev
13
+ - liblapacke-dev
14
+
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # RandSVD
2
2
 
3
+ [![Build Status](https://travis-ci.org/yoshoku/RandSVD.svg?branch=master)](https://travis-ci.org/yoshoku/RandSVD)
4
+ [![Gem Version](https://badge.fury.io/rb/randsvd.svg)](https://badge.fury.io/rb/randsvd)
5
+
3
6
  RandSVD is a class that performs truncated singular value decomposition using a randomized algorithm.
4
7
  To implement, I referred to the following papers:
5
8
 
@@ -43,7 +43,7 @@ class RandSVD
43
43
  rsvd(mat, k, t, 1)
44
44
  end
45
45
 
46
- protected
46
+ private
47
47
 
48
48
  def rsvd(mat, k, t, svd_type)
49
49
  n = mat.shape[1]
@@ -1,8 +1,3 @@
1
1
  class RandSVD
2
- module VERSION
3
- MAJOR = 0
4
- MINOR = 1
5
- TINY = 1
6
- STRING = [MAJOR, MINOR, TINY].compact.join('.')
7
- end
2
+ VERSION = '0.1.2'.freeze
8
3
  end
@@ -1,29 +1,30 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
2
+ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "randsvd/version"
4
+ require 'randsvd/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "randsvd"
8
- spec.version = RandSVD::VERSION::STRING
9
- spec.authors = ["yoshoku"]
10
- spec.email = ["yoshoku@outlook.com"]
7
+ spec.name = 'randsvd'
8
+ spec.version = RandSVD::VERSION
9
+ spec.authors = ['yoshoku']
10
+ spec.email = ['yoshoku@outlook.com']
11
11
 
12
12
  spec.summary = %q{RandSVD is a class that performs truncated singular
13
13
  value decomposition using a randomized algorithm.}
14
- spec.homepage = "https://github.com/yoshoku/randsvd"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/yoshoku/randsvd'
15
+ spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
18
  f.match(%r{^(test|spec|features)/})
19
19
  end
20
- spec.bindir = "exe"
20
+ spec.bindir = 'exe'
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ["lib"]
22
+ spec.require_paths = ['lib']
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.15"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.0"
27
- spec.add_development_dependency "nmatrix", "~> 0.2.3"
28
- spec.add_development_dependency "nmatrix-lapacke", "~> 0.2.3"
24
+ spec.add_runtime_dependency 'nmatrix', '~> 0.2.3'
25
+ spec.add_runtime_dependency 'nmatrix-lapacke', '~> 0.2.3'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.15'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
30
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: randsvd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-09 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: nmatrix
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.15'
20
- type: :development
19
+ version: 0.2.3
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.15'
26
+ version: 0.2.3
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: nmatrix-lapacke
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
33
+ version: 0.2.3
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 0.2.3
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '1.15'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '1.15'
55
55
  - !ruby/object:Gem::Dependency
56
- name: nmatrix
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.3
61
+ version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.3
68
+ version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: nmatrix-lapacke
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.3
75
+ version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.3
82
+ version: '3.0'
83
83
  description:
84
84
  email:
85
85
  - yoshoku@outlook.com
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.6.13
125
+ rubygems_version: 2.4.5.4
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: RandSVD is a class that performs truncated singular value decomposition using