Skip to content

Commit a018ee7

Browse files
fix number_of_generated_coefficient computation and missing include
1 parent f0b1541 commit a018ee7

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

include/htool/hmatrix/hmatrix_output.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ std::map<std::string, std::string> get_hmatrix_information(const HMatrix<Coeffic
171171
maxinfos[0] = std::max(maxinfos[0], local_size);
172172
mininfos[0] = std::min(mininfos[0], local_size);
173173
meaninfos[0] += local_size;
174-
if (dense_block->get_symmetry() != 'N') {
175-
number_of_generated_coefficient += (local_number_of_rows * (local_number_of_cols + 1)) / 2.;
176-
} else {
177-
number_of_generated_coefficient += (local_number_of_rows * local_number_of_cols);
178-
}
174+
number_of_generated_coefficient += (local_number_of_rows * local_number_of_cols);
179175
}
180176

181177
meaninfos[0] = (dense_blocks.size() == 0 ? 0 : meaninfos[0] / dense_blocks.size());

include/htool/matrix/utils/output.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define HTOOL_MATRIX_UTILS_OUTPUT_HPP
33

44
#include "../../misc/logger.hpp"
5+
#include "../matrix.hpp"
56
#include "modifiers.hpp"
67
#include <iostream>
78
#include <string>

0 commit comments

Comments
 (0)