tomoto 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/ext/tomoto/ext.cpp +34 -9
- data/ext/tomoto/extconf.rb +2 -1
- data/lib/tomoto/dmr.rb +1 -1
- data/lib/tomoto/gdmr.rb +1 -1
- data/lib/tomoto/version.rb +1 -1
- data/vendor/tomotopy/LICENSE +1 -1
- data/vendor/tomotopy/README.kr.rst +32 -3
- data/vendor/tomotopy/README.rst +30 -1
- data/vendor/tomotopy/src/Labeling/FoRelevance.cpp +133 -147
- data/vendor/tomotopy/src/Labeling/FoRelevance.h +158 -5
- data/vendor/tomotopy/src/TopicModel/DMR.h +1 -16
- data/vendor/tomotopy/src/TopicModel/DMRModel.hpp +15 -34
- data/vendor/tomotopy/src/TopicModel/DT.h +1 -16
- data/vendor/tomotopy/src/TopicModel/DTModel.hpp +15 -32
- data/vendor/tomotopy/src/TopicModel/GDMRModel.hpp +18 -37
- data/vendor/tomotopy/src/TopicModel/HDPModel.hpp +16 -20
- data/vendor/tomotopy/src/TopicModel/HLDAModel.hpp +3 -3
- data/vendor/tomotopy/src/TopicModel/LDA.h +0 -11
- data/vendor/tomotopy/src/TopicModel/LDAModel.hpp +9 -21
- data/vendor/tomotopy/src/TopicModel/LLDA.h +0 -15
- data/vendor/tomotopy/src/TopicModel/LLDAModel.hpp +12 -30
- data/vendor/tomotopy/src/TopicModel/MGLDA.h +0 -15
- data/vendor/tomotopy/src/TopicModel/MGLDAModel.hpp +59 -72
- data/vendor/tomotopy/src/TopicModel/PLDAModel.hpp +12 -30
- data/vendor/tomotopy/src/TopicModel/SLDA.h +0 -15
- data/vendor/tomotopy/src/TopicModel/SLDAModel.hpp +17 -35
- data/vendor/tomotopy/src/TopicModel/TopicModel.hpp +158 -38
- data/vendor/tomotopy/src/Utils/Dictionary.h +40 -2
- data/vendor/tomotopy/src/Utils/EigenAddonOps.hpp +122 -3
- data/vendor/tomotopy/src/Utils/SharedString.hpp +181 -0
- data/vendor/tomotopy/src/Utils/math.h +1 -1
- data/vendor/tomotopy/src/Utils/sample.hpp +1 -1
- data/vendor/tomotopy/src/Utils/serializer.hpp +17 -0
- data/vendor/variant/LICENSE +25 -0
- data/vendor/variant/LICENSE_1_0.txt +23 -0
- data/vendor/variant/README.md +102 -0
- data/vendor/variant/include/mapbox/optional.hpp +74 -0
- data/vendor/variant/include/mapbox/recursive_wrapper.hpp +122 -0
- data/vendor/variant/include/mapbox/variant.hpp +974 -0
- data/vendor/variant/include/mapbox/variant_io.hpp +45 -0
- metadata +15 -7
@@ -0,0 +1,45 @@
|
|
1
|
+
#ifndef MAPBOX_UTIL_VARIANT_IO_HPP
|
2
|
+
#define MAPBOX_UTIL_VARIANT_IO_HPP
|
3
|
+
|
4
|
+
#include <iosfwd>
|
5
|
+
|
6
|
+
#include <mapbox/variant.hpp>
|
7
|
+
|
8
|
+
namespace mapbox {
|
9
|
+
namespace util {
|
10
|
+
|
11
|
+
namespace detail {
|
12
|
+
// operator<< helper
|
13
|
+
template <typename Out>
|
14
|
+
class printer
|
15
|
+
{
|
16
|
+
public:
|
17
|
+
explicit printer(Out& out)
|
18
|
+
: out_(out) {}
|
19
|
+
printer& operator=(printer const&) = delete;
|
20
|
+
|
21
|
+
// visitor
|
22
|
+
template <typename T>
|
23
|
+
void operator()(T const& operand) const
|
24
|
+
{
|
25
|
+
out_ << operand;
|
26
|
+
}
|
27
|
+
|
28
|
+
private:
|
29
|
+
Out& out_;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
|
33
|
+
// operator<<
|
34
|
+
template <typename CharT, typename Traits, typename... Types>
|
35
|
+
VARIANT_INLINE std::basic_ostream<CharT, Traits>&
|
36
|
+
operator<<(std::basic_ostream<CharT, Traits>& out, variant<Types...> const& rhs)
|
37
|
+
{
|
38
|
+
detail::printer<std::basic_ostream<CharT, Traits>> visitor(out);
|
39
|
+
apply_visitor(visitor, rhs);
|
40
|
+
return out;
|
41
|
+
}
|
42
|
+
} // namespace util
|
43
|
+
} // namespace mapbox
|
44
|
+
|
45
|
+
#endif // MAPBOX_UTIL_VARIANT_IO_HPP
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomoto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '5'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email: andrew@chartkick.com
|
85
85
|
executables: []
|
86
86
|
extensions:
|
@@ -499,6 +499,7 @@ files:
|
|
499
499
|
- vendor/tomotopy/src/Utils/MultiNormalDistribution.hpp
|
500
500
|
- vendor/tomotopy/src/Utils/PolyaGamma.hpp
|
501
501
|
- vendor/tomotopy/src/Utils/PolyaGammaHybrid.hpp
|
502
|
+
- vendor/tomotopy/src/Utils/SharedString.hpp
|
502
503
|
- vendor/tomotopy/src/Utils/ThreadPool.hpp
|
503
504
|
- vendor/tomotopy/src/Utils/Trie.hpp
|
504
505
|
- vendor/tomotopy/src/Utils/TruncMultiNormal.hpp
|
@@ -515,11 +516,18 @@ files:
|
|
515
516
|
- vendor/tomotopy/src/Utils/sse_mathfun.h
|
516
517
|
- vendor/tomotopy/src/Utils/text.hpp
|
517
518
|
- vendor/tomotopy/src/Utils/tvector.hpp
|
519
|
+
- vendor/variant/LICENSE
|
520
|
+
- vendor/variant/LICENSE_1_0.txt
|
521
|
+
- vendor/variant/README.md
|
522
|
+
- vendor/variant/include/mapbox/optional.hpp
|
523
|
+
- vendor/variant/include/mapbox/recursive_wrapper.hpp
|
524
|
+
- vendor/variant/include/mapbox/variant.hpp
|
525
|
+
- vendor/variant/include/mapbox/variant_io.hpp
|
518
526
|
homepage: https://github.com/ankane/tomoto
|
519
527
|
licenses:
|
520
528
|
- MIT
|
521
529
|
metadata: {}
|
522
|
-
post_install_message:
|
530
|
+
post_install_message:
|
523
531
|
rdoc_options: []
|
524
532
|
require_paths:
|
525
533
|
- lib
|
@@ -534,8 +542,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
534
542
|
- !ruby/object:Gem::Version
|
535
543
|
version: '0'
|
536
544
|
requirements: []
|
537
|
-
rubygems_version: 3.1.
|
538
|
-
signing_key:
|
545
|
+
rubygems_version: 3.1.4
|
546
|
+
signing_key:
|
539
547
|
specification_version: 4
|
540
548
|
summary: High performance topic modeling for Ruby
|
541
549
|
test_files: []
|