Skip to content
Snippets Groups Projects
Commit 6eacb85f authored by dgelessus's avatar dgelessus
Browse files

Change clamp calls for compatibility with armadillo older than 10.5

parent 43dc0d44
Branches
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ void searchWithQuery(float *querySetMatArr, SP_integer querySetMatSize, SP_integ
}
// float32 cant handle values over 1.0e+38
distancesReturnMat.clamp(-1.0e+38, 1.0e+38);
distancesReturnMat = clamp(distancesReturnMat, -1.0e+38, 1.0e+38);
// return the Matrices
......@@ -158,7 +158,7 @@ void searchNoQuery(SP_integer k,
}
// float32 cant handle values over 1.0e+38
distancesReturnMat.clamp(-1.0e+38, 1.0e+38);
distancesReturnMat = clamp(distancesReturnMat, -1.0e+38, 1.0e+38);
// return the Matrices
returnMatrixInformation(resultingNeighborsReturnMat, resultingNeighborsMatArr, resultingNeighborsMatColNum, resultingNeighborsMatRowNum);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment