datasketches 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/datasketches/version.rb +1 -1
- data/vendor/datasketches-cpp/NOTICE +1 -1
- data/vendor/datasketches-cpp/cpc/include/cpc_compressor_impl.hpp +1 -1
- data/vendor/datasketches-cpp/python/src/vector_of_kll.cpp +2 -2
- data/vendor/datasketches-cpp/version.cfg.in +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b2bd41940eaa4000c00002a75f4c3e3d9096d7904381d19ccd8b206a85d67e
|
4
|
+
data.tar.gz: 32eef85b031864b51f2968b4ea3bceaafceb1293126ddb0c00c86c85e97a41b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d473c544c65b50995ab61b81dcd2c7d061432977b19f324d9d3601344e4049db83f04cd223ceb65fcfc2ccb0bea2c54b56e7335d050df13d5d096a5795f9af2e
|
7
|
+
data.tar.gz: bfc6db62462ffbbf24217ea7c6f82d7a14986371dd2236a21e941cd8c9e03a769a9055db6589a1477e97252336535d6a26cddbcd9f0a061e35eb68799b99473b
|
data/CHANGELOG.md
CHANGED
data/lib/datasketches/version.rb
CHANGED
@@ -449,7 +449,7 @@ uint8_t cpc_compressor<A>::determine_pseudo_phase(uint8_t lg_k, uint32_t c) {
|
|
449
449
|
if (lg_k < 4) throw std::logic_error("lgK < 4");
|
450
450
|
const size_t tmp = c >> (lg_k - 4);
|
451
451
|
const uint8_t phase = tmp & 15;
|
452
|
-
if (phase
|
452
|
+
if (phase >= 16) throw std::out_of_range("wrong phase");
|
453
453
|
return phase;
|
454
454
|
}
|
455
455
|
}
|
@@ -72,7 +72,7 @@ class vector_of_kll_sketches {
|
|
72
72
|
std::string to_string(bool print_levels = false, bool print_items = false) const;
|
73
73
|
|
74
74
|
// binary output/input
|
75
|
-
py::list serialize(py::array_t<
|
75
|
+
py::list serialize(const py::array_t<int>& isk);
|
76
76
|
// note: deserialize() replaces the sketch at the specified
|
77
77
|
// index. Not a static method.
|
78
78
|
void deserialize(const py::bytes& sk_bytes, uint32_t idx);
|
@@ -404,7 +404,7 @@ void vector_of_kll_sketches<T, C>::deserialize(const py::bytes& sk_bytes,
|
|
404
404
|
}
|
405
405
|
|
406
406
|
template<typename T, typename C>
|
407
|
-
py::list vector_of_kll_sketches<T, C>::serialize(py::array_t<
|
407
|
+
py::list vector_of_kll_sketches<T, C>::serialize(const py::array_t<int>& isk) {
|
408
408
|
std::vector<uint32_t> inds = get_indices(isk);
|
409
409
|
const size_t num_sketches = inds.size();
|
410
410
|
|
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datasketches
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
342
342
|
- !ruby/object:Gem::Version
|
343
343
|
version: '0'
|
344
344
|
requirements: []
|
345
|
-
rubygems_version: 3.
|
345
|
+
rubygems_version: 3.4.1
|
346
346
|
signing_key:
|
347
347
|
specification_version: 4
|
348
348
|
summary: Sketch data structures for Ruby
|