Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix warnings introduced by previous commit
  • Loading branch information
amadio committed Apr 19, 2017
commit 836f366d3312d2921447c86d2822cc447bc36bcf
8 changes: 4 additions & 4 deletions tmva/tmva/test/DNN/Utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ auto maximumRelativeError(const Matrix1 &X, const Matrix2 &Y) -> decltype(X(0,0)
{
decltype(X(0,0)) curError, maxError = 0.0;

size_t m = X.GetNrows();
size_t n = X.GetNcols();
Int_t m = X.GetNrows();
Int_t n = X.GetNcols();

assert(m == Y.GetNrows());
assert(n == Y.GetNcols());

for (size_t i = 0; i < m; i++) {
for (size_t j = 0; j < n; j++) {
for (Int_t i = 0; i < m; i++) {
for (Int_t j = 0; j < n; j++) {
curError = relativeError(X(i,j), Y(i,j));
maxError = std::max(curError, maxError);
}
Expand Down