Skip to content

Commit

Permalink
include, new line at eof
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Monge committed Oct 1, 2022
1 parent 7fd87ff commit 8558d3a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions baspacho/baspacho/MathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#pragma once

#include <cmath>
#include "baspacho/baspacho/Utils.h"

namespace BaSpaCho {
Expand Down
2 changes: 1 addition & 1 deletion baspacho/examples/AtomicOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ struct PlainOps {
static inline __attribute__((always_inline)) void vectorAdd(U& u, const V& v) {
u += v;
}
};
};
2 changes: 1 addition & 1 deletion baspacho/examples/OptimizeBaAtLarge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ int main(int argc, char* argv[]) {
: Optimizer::Solver_Direct});

return 0;
}
}
2 changes: 1 addition & 1 deletion baspacho/examples/OptimizeCompModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ int main(int argc, char* argv[]) {
}

return 0;
}
}
2 changes: 1 addition & 1 deletion baspacho/examples/OptimizeSimple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ int main(int argc, char* argv[]) {
opt.optimize();

return 0;
}
}
2 changes: 1 addition & 1 deletion baspacho/examples/Optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -895,4 +895,4 @@ class Optimizer {
}
}
}
};
};
2 changes: 1 addition & 1 deletion baspacho/examples/PCG_Sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ int main(int argc, char* argv[]) {
}
runTest(precond, 37);
return 0;
}
}
2 changes: 1 addition & 1 deletion baspacho/examples/Preconditioner.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@ class LowerPrecSolvePrecond<double> : public Preconditioner<double> {
int64_t vecSize;
int64_t paramStart;
std::vector<float> matData;
};
};
2 changes: 1 addition & 1 deletion baspacho/examples/SoftLoss.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ struct CauchyLoss : Loss {
double inv = 1.0 / sum;
return std::make_tuple(b * std::log(sum), inv, -c * (inv * inv));
}
};
};
2 changes: 1 addition & 1 deletion baspacho/examples/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ string microsecondsString(size_t microseconds, int precision) {
}
}
return os.str();
}
}
2 changes: 1 addition & 1 deletion baspacho/examples/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ std::string printVec(const std::vector<T>& ints) {
}
ss << "]";
return ss.str();
}
}
2 changes: 1 addition & 1 deletion baspacho/testing/TestingMatGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ SparseMatGenerator SparseMatGenerator::genGrid(int64_t width, int64_t height, do
return retv;
}

} // end namespace BaSpaCho::testing
} // end namespace BaSpaCho::testing
2 changes: 1 addition & 1 deletion baspacho/testing/TestingMatGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ struct SparseMatGenerator {
std::vector<std::set<int64_t>> columns;
};

} // end namespace BaSpaCho::testing
} // end namespace BaSpaCho::testing
2 changes: 1 addition & 1 deletion baspacho/testing/TestingUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@ vector<set<int64_t>> makeIndependentElimSet(vector<set<int64_t>>& columns, int64
return retvCols;
}

} // end namespace BaSpaCho::testing
} // end namespace BaSpaCho::testing
2 changes: 1 addition & 1 deletion baspacho/testing/TestingUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ void naiveAddEliminationEntries(std::vector<std::set<int64_t>>& columns, int64_t
std::vector<std::set<int64_t>> makeIndependentElimSet(std::vector<std::set<int64_t>>& columns,
int64_t start, int64_t end);

} // end namespace BaSpaCho::testing
} // end namespace BaSpaCho::testing

0 comments on commit 8558d3a

Please sign in to comment.