numo-narray 0.9.1.9 → 0.9.2.0

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: 2de0f542db4df78b97eecd077130fb8f3146191a229698512d487916a8a57ce0
4
- data.tar.gz: 1452f989e4dc615c0e4f4b4891c9f44072431f9face27a602ce9b91286909cbf
3
+ metadata.gz: 5a1e49e2dfd16c57254defdd6ccf5548d676f5c7238341fca70f841d14931e30
4
+ data.tar.gz: c2bdd3b1131d58ab462d1259ccdbff2664040c5cacd4f5ef2fcc314046a78bd2
5
5
  SHA512:
6
- metadata.gz: 23e67c8a70a95d69d25ad78561286eb56db63a0aa6465903ebbed1e076dfef6c4df4aa1ccd1d2f5ec40f4d02307c82c51b47c0da4cb48415c93bfdc6adaf4f27
7
- data.tar.gz: 63847fb7e9173d0be70dc63be57ebbcb52a0dc6f52e613b7c9c69fab33f83920ba6b4b478156a18fa1fac0f6e08718713449441485149a6d9f178af7f2d87bdd
6
+ metadata.gz: 6906c6bff6eac4969dc653c17bbe6cfc7eaffd3415c65e56e2f09bd6575b18f5495eedf2f4baf3062e6501a9b177b88d900aec8c49bdd060495975342b951344
7
+ data.tar.gz: ae33fa09e06cedc0032c6689e3e8da4a53991deb0c04e8019aeee30c58617af7bd356f916464eb0ece80ea8063ce575e71facc50b1e06108bb45579e5d4e8891
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Numo::NArray
2
2
 
3
3
  [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/ruby-numo/numo-narray)
4
- [![Build Status](https://travis-ci.org/ruby-numo/numo-narray.svg?branch=master)](https://travis-ci.org/ruby-numo/numo-narray)
4
+ [![Build Status](https://github.com/ruby-numo/numo-narray/workflows/build/badge.svg)](https://github.com/ruby-numo/numo-narray/actions)
5
5
 
6
6
  [GitHub](https://github.com/ruby-numo/numo-narray)
7
7
  | [RubyGems](https://rubygems.org/gems/numo-narray)
@@ -71,13 +71,15 @@ For more examples, check out this [narray version of 100 numpy exercises](https:
71
71
  ### Build
72
72
 
73
73
  ```shell
74
- ruby setup.rb
74
+ git clone https://github.com/ruby-numo/numo-narray
75
+ cd numo-narray
76
+ bundle install
77
+ bundle exec rake compile
75
78
  ```
76
79
 
77
80
  ### Run tests
78
81
 
79
82
  ```shell
80
- bundle install
81
83
  bundle exec rake test
82
84
  ```
83
85
 
@@ -94,7 +94,11 @@ static VALUE
94
94
  return <%=c_func%>_self(argc, argv, self);
95
95
  } else {
96
96
  v = rb_funcall(klass, id_cast, 1, self);
97
+ //<% if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.7.0') %>
97
98
  return rb_funcall2(v, rb_intern("<%=name%>"), argc, argv);
99
+ //<% else %>
100
+ return rb_funcallv_kw(v, rb_intern("<%=name%>"), argc, argv, RB_PASS_CALLED_KEYWORDS);
101
+ //<% end %>
98
102
  }
99
103
  //<% end %>
100
104
  }
@@ -1531,7 +1531,7 @@ static VALUE na_inplace( VALUE self );
1531
1531
  /*
1532
1532
  Load marshal data.
1533
1533
  @overload marshal_load(data)
1534
- @params [Array] Array containing marshal data.
1534
+ @param [Array] Array containing marshal data.
1535
1535
  @return [nil]
1536
1536
  */
1537
1537
  static VALUE
@@ -13,8 +13,8 @@ extern "C" {
13
13
  #endif
14
14
  #endif
15
15
 
16
- #define NARRAY_VERSION "0.9.1.9"
17
- #define NARRAY_VERSION_CODE 919
16
+ #define NARRAY_VERSION "0.9.2.0"
17
+ #define NARRAY_VERSION_CODE 920
18
18
 
19
19
  #include <math.h>
20
20
  #include "numo/compat.h"
@@ -117,7 +117,7 @@ static inline dtype c_from_dcomplex(dcomplex x) {
117
117
  #define m_acosh(x) c_acosh(x)
118
118
  #define m_atanh(x) c_atanh(x)
119
119
  #define m_hypot(x,y) c_hypot(x,y)
120
- #define m_sinc(x) c_div(c_sin(x),x)
120
+ #define m_sinc(x) ((REAL(x)==0 && IMAG(x)==0) ? (c_new(1,0)):(c_div(c_sin(x),x)))
121
121
 
122
122
  #define m_sum_init INT2FIX(0)
123
123
  #define m_mulsum_init INT2FIX(0)
@@ -110,7 +110,7 @@ extern double pow(double, double);
110
110
  #define m_atanh(x) atanh(x)
111
111
  #define m_atan2(x,y) atan2(x,y)
112
112
  #define m_hypot(x,y) hypot(x,y)
113
- #define m_sinc(x) (sin(x)/(x))
113
+ #define m_sinc(x) (((x)==0) ? 1.0:(sin(x)/(x)))
114
114
 
115
115
  #define m_erf(x) erf(x)
116
116
  #define m_erfc(x) erfc(x)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-narray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1.9
4
+ version: 0.9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro TANAKA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-13 00:00:00.000000000 Z
11
+ date: 2021-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.1.2
248
+ rubygems_version: 3.2.3
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: alpha release of Numo::NArray - New NArray class library in Ruby/Numo (NUmerical