stl-rb 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 60db1d8c0be422d010fbf13682f576043de6099ee8b6642eaf71e4582605a847
4
- data.tar.gz: 62fd9d834aeac575bffb9e86effcc4fd4b6dae7484a86dab0cbe3c3a86359f44
3
+ metadata.gz: 061add34ca7cbbc77e11a2178f040c80d7dc37ac98d9c845efa065e9cfdf3b29
4
+ data.tar.gz: 8bb5178783861d2a559ae10ebe13cf413cda80d8bb3f24fda84c3328a2f91ea7
5
5
  SHA512:
6
- metadata.gz: 88e908bc56aabfb2a292c0fa2c4121b01f9aec8efc6c87c736195d6c699b8a1545d1579e70076169dfe5964c9d675c071fb91af7960b23e8eb52fd63224bba27
7
- data.tar.gz: 6bd0364aca82ba7e29cbf06c0f6a71caa3cfcb95897ef1aaef66e9bf88897b25409412942161b6b24ce62f62cba7d4f54963982feb607dad93480982249f412e
6
+ metadata.gz: 6928df73f32cc800b991c2e9797cd1ff0536f408a3a8bb7821883fc9a5623e98dca508ae3d827dff271cb0a638dacc5264de07acb7915a52f80deb52bc71a5ec
7
+ data.tar.gz: caed7783af4c42b8c21eb1585c92d2aa2fb956dc34b380916e2a8f859e1a2c2cfbf6523e71f2235581f5c630cb2e4fddf9e5c3e9ccb6e4258ad3a50d0d421423
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.2 (2023-06-20)
2
+
3
+ - Fixed bug when jump > 1
4
+
1
5
  ## 0.2.1 (2023-05-11)
2
6
 
3
7
  - Fixed error on Fedora
data/ext/stl/stl.hpp CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * STL C++ v0.1.2
2
+ * STL C++ v0.1.3
3
3
  * https://github.com/ankane/stl-cpp
4
4
  * Unlicense OR MIT License
5
5
  *
@@ -151,11 +151,11 @@ void ess(const float* y, size_t n, size_t len, int ideg, size_t njump, bool user
151
151
  auto ok = est(y, n, len, ideg, (float) n, &ys[n - 1], nleft, nright, res, userw, rw);
152
152
  if (!ok) {
153
153
  ys[n - 1] = y[n - 1];
154
- if (k != n - 1) {
155
- auto delta = (ys[n - 1] - ys[k - 1]) / ((float) (n - k));
156
- for (auto j = k + 1; j <= n - 1; j++) {
157
- ys[j - 1] = ys[k - 1] + delta * ((float) (j - k));
158
- }
154
+ }
155
+ if (k != n - 1) {
156
+ auto delta = (ys[n - 1] - ys[k - 1]) / ((float) (n - k));
157
+ for (auto j = k + 1; j <= n - 1; j++) {
158
+ ys[j - 1] = ys[k - 1] + delta * ((float) (j - k));
159
159
  }
160
160
  }
161
161
  }
data/lib/stl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stl
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stl-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice