libffm 0.2.0 → 0.2.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/ext/libffm/ext.cpp +4 -4
- data/ext/libffm/extconf.rb +1 -1
- data/lib/libffm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782aa375cfb5914f555a5cfcce90861d735b17eb9cc2ac0d2cb5f742440abea6
|
4
|
+
data.tar.gz: e0fa4042b6c1c107adbb5ea773e0723964b3b6471a6e8786fa917f014e753313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec6e9c1da413726debdc94f1fdf468ebb6c2f9667eb2aabd7aae4eb2420442d0d926567e629649c6e4986cf7f6740deafba4a11e682c7ac1e6af697cdbc7ea68
|
7
|
+
data.tar.gz: '08b2ec52e249662570bb2af23efe46625e38efc94dc542cec054728740f776fcfe1cad06516799bb350ec00628ef36ce5332183d9f48dd052f25be50f54973b3'
|
data/CHANGELOG.md
CHANGED
data/ext/libffm/ext.cpp
CHANGED
@@ -20,9 +20,9 @@ using Rice::define_class_under;
|
|
20
20
|
extern "C"
|
21
21
|
void Init_ext()
|
22
22
|
{
|
23
|
-
|
23
|
+
auto rb_mLibffm = define_module("Libffm");
|
24
24
|
|
25
|
-
|
25
|
+
auto rb_mExt = define_module_under(rb_mLibffm, "Ext");
|
26
26
|
define_class_under<ffm::ffm_model>(rb_mExt, "Model");
|
27
27
|
|
28
28
|
rb_mExt
|
@@ -72,11 +72,11 @@ void Init_ext()
|
|
72
72
|
x.clear();
|
73
73
|
strtok(line, " \t");
|
74
74
|
|
75
|
-
while(true) {
|
75
|
+
while (true) {
|
76
76
|
char *field_char = strtok(nullptr,":");
|
77
77
|
char *idx_char = strtok(nullptr,":");
|
78
78
|
char *value_char = strtok(nullptr," \t");
|
79
|
-
if(field_char == nullptr || *field_char == '\n')
|
79
|
+
if (field_char == nullptr || *field_char == '\n')
|
80
80
|
break;
|
81
81
|
|
82
82
|
ffm::ffm_node N;
|
data/ext/libffm/extconf.rb
CHANGED
@@ -2,7 +2,7 @@ require "mkmf-rice"
|
|
2
2
|
|
3
3
|
# -DUSESSE requires sse3
|
4
4
|
# TODO test for it or update fork to use __SSE3__
|
5
|
-
$CXXFLAGS += " -std=c++17 -march=native"
|
5
|
+
$CXXFLAGS += " -std=c++17 $(optflags) -march=native"
|
6
6
|
|
7
7
|
apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i
|
8
8
|
|
data/lib/libffm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libffm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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: 2021-05-
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|