Skip to content

Commit

Permalink
ErrorCalculator.h: Add Includes
Browse files Browse the repository at this point in the history
Adding includes of used stdlib functionality to
`ErrorCalculator.h`

This is generally recommended practice for stability of
include files. I have not done a systematic check yet
but there are tools that can help with this and explain
more on the need:
  https://include-what-you-use.org
  • Loading branch information
ax3l committed Feb 28, 2024
1 parent 84677eb commit 3467933
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/mgard-x/Utilities/ErrorCalculator.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
// #include "../../shuffle.hpp"
#include "Types.h"

#include <cmath>
#include <limits>
#include <vector>


namespace mgard_x {

template <typename T> T L_inf_norm(size_t n, const T *data) {
Expand Down Expand Up @@ -117,4 +122,4 @@ T PSNR(size_t n, const T *original_data, const T *decompressed_data) {

} // namespace mgard_x

#endif
#endif

0 comments on commit 3467933

Please sign in to comment.