- fixed "lud" typo
authorAnatoly <Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 13:53:21 +0000 (16:53 +0300)
committerAnatoly <Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 13:53:21 +0000 (16:53 +0300)
src/corrtype.cpp

index 3d18ada1489ccffa4f7c9370df4c09551701141a..b5739fa179de254f5dfa7891b42b37cbc24d09ce 100644 (file)
@@ -113,7 +113,7 @@ void correlationType::readWriteCorrelations(int rwMode) {
     if (rwMode == 1) {
         file = std::fopen((outputName + "-matrixData").c_str(), "a");
         for (size_t i {0}; i < matrixes.size(); i++) {
-            std::fprintf(file, "%d %lud\n", count, i);
+            std::fprintf(file, "%d %lu\n", count, i);
             for (size_t j {0}; j < matrixes[i].size(); j++) {
                 for (size_t f {0}; f < matrixes[i][j].size(); f++) {
                     std::fprintf(file, "%.4f ", matrixes[i][j][f]); //~16
@@ -132,7 +132,7 @@ void correlationType::readWriteCorrelations(int rwMode) {
             matrixes[i].resize(0);
             matrixes[i].resize(index.size());
             for (size_t j {0}; j < index.size(); j++) {
-                matrixes[i][j].resize(index.size());
+                matrixes[i][j].resize(index.size(), 0.);
                 for (size_t k {0}; k < index.size(); k++) {
                     t2 = std::fscanf(file, "%lf ", &matrixes[i][j][k]);
                 }