numo-libsvm 2.0.0 → 2.0.1

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: 1c35f46a2bba049bfb540087ab92b16213aef0289088b0d07c656054bf62be75
4
- data.tar.gz: c8473b0084bdb2e2a7396d906f5264bf9e0dc315f43aac1c5feae90d52e7a0e4
3
+ metadata.gz: 132e5e9b95db85b1897e804b3bcd22bb948c9d8200dcbf14752059b98f377199
4
+ data.tar.gz: 24ff1957951af9036b41017b4c34e1b06046059e1c57e5e33bc9d1554f87bee5
5
5
  SHA512:
6
- metadata.gz: e164fae3d226b73f226fda35b5997b92752dc2386d2be8d9a4cfa00e8f0ca42eb7ed96f597f72ffd2f2203aef7ced2a0bc60b0c82fbc39c1089b3510d2275d49
7
- data.tar.gz: be27aa1d940590808e9e6235e2a5fc00e9e5ec32715effea22218fa92bb85d922610db332c8a9d9dff6aa6ae9233e1d39bb6f7f28e0270a2057c8b6a5aef912e
6
+ metadata.gz: 0a63eb30c744e3531c2de44a7b5ef229261f7fd0e50f84d4e3613701d165ee5cee17cac0026702980571ca25266d99c2d81f1c595ea1a6f215d71b50b26ba830
7
+ data.tar.gz: d16ec02c158f15181e37cecb554e6bbd60d02bd60d95bf16644849683073e34d6c06c60503039da9a7ecbee958915495d1241d5482a486056177047c4a13612b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.1
2
+ - Chnage to use memcpy to copy vector.
3
+ - Refactor codes and configs with RuboCop.
4
+
1
5
  # 2.0.0
2
6
  - Redesign native extension codes.
3
7
  - Change not ot use git submodule for LIBSVM codes bundle.
data/README.md CHANGED
@@ -189,7 +189,7 @@ param = {
189
189
 
190
190
  ## Contributing
191
191
 
192
- Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-libsvm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
192
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-libsvm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.
193
193
 
194
194
  ## License
195
195
 
@@ -76,7 +76,7 @@ VALUE convertVectorXdToNArray(const double* const arr, const int size) {
76
76
  size_t shape[1] = {(size_t)size};
77
77
  VALUE vec_val = rb_narray_new(numo_cDFloat, 1, shape);
78
78
  double* vec_ptr = (double*)na_get_pointer_for_write(vec_val);
79
- for (int i = 0; i < size; i++) vec_ptr[i] = arr[i];
79
+ memcpy(vec_ptr, arr, size * sizeof(double));
80
80
  return vec_val;
81
81
  }
82
82
 
@@ -3,6 +3,6 @@
3
3
  module Numo
4
4
  module Libsvm
5
5
  # The version of Numo::Libsvm you are using.
6
- VERSION = '2.0.0'
6
+ VERSION = '2.0.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-libsvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-09 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -55,6 +55,7 @@ metadata:
55
55
  homepage_uri: https://github.com/yoshoku/numo-libsvm
56
56
  source_code_uri: https://github.com/yoshoku/numo-libsvm
57
57
  documentation_uri: https://yoshoku.github.io/numo-libsvm/doc/
58
+ rubygems_mfa_required: 'true'
58
59
  post_install_message:
59
60
  rdoc_options: []
60
61
  require_paths:
@@ -70,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  - !ruby/object:Gem::Version
71
72
  version: '0'
72
73
  requirements: []
73
- rubygems_version: 3.3.3
74
+ rubygems_version: 3.2.33
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: Numo::Libsvm is a Ruby gem binding to the LIBSVM library. Numo::Libsvm makes