@@ -35,7 +35,7 @@ int main(int argc, const char** argv) {
35
35
int resized_width = 0 ;
36
36
int resized_height = 0 ;
37
37
int degree = 12 ;
38
- int delta = 0.5 ;
38
+ double delta = 0.5 ;
39
39
int order = 64 ;
40
40
41
41
@@ -71,7 +71,7 @@ int main(int argc, const char** argv) {
71
71
if (result.count (" pmod" )) plain_modulus = result[" pmod" ].as <int >();
72
72
if (result.count (" cmod" )) coeff_modulus = result[" cmod" ].as <int >();
73
73
if (result.count (" degree" )) degree = result[" degree" ].as <int >();
74
- if (result.count (" order" )) delta = result[" order" ].as <int >();
74
+ if (result.count (" order" )) order = result[" order" ].as <int >();
75
75
if (result.count (" delta" )) delta = result[" delta" ].as <double >();
76
76
if (result.count (" n_poly_base" )) n_poly_base = result[" base" ].as <int >();
77
77
}
@@ -125,15 +125,13 @@ int main(int argc, const char** argv) {
125
125
Ciphertext c, index , elem, count;
126
126
std::vector<std::vector<Ciphertext>> res;
127
127
for (int i = 0 ; i < 3 ; i++) {
128
- std::cout << " Color " << i << std::endl;
129
128
encryptor.encrypt (encoder.encode (0 ), index );
130
129
std::vector<Ciphertext> channel;
131
130
for (int j = 0 ; j < width * height; j++) {
132
131
encryptor.encrypt (encoder.encode (0 ), c);
133
132
channel.push_back (c);
134
133
}
135
134
for (int j = 0 ; j < pairs[i]; j++) {
136
- std::cout << " Run " << j << std::endl;
137
135
std::vector<Ciphertext> run;
138
136
elem.load (myfile);
139
137
count.load (myfile);
@@ -144,7 +142,6 @@ int main(int argc, const char** argv) {
144
142
// std::cout << encoder.decode(p) << '\t';
145
143
evaluator.add (channel[k], run[k]);
146
144
}
147
- std::cout << std::endl;
148
145
evaluator.add (index , count);
149
146
}
150
147
res.push_back (channel);
0 commit comments