Skip to content
Snippets Groups Projects
Commit d411eb0c authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

*** empty log message ***

parent 9ed646af
No related branches found
No related tags found
No related merge requests found
...@@ -1455,16 +1455,16 @@ ReturnMatrix geqt(const Matrix& mat1,const Matrix& mat2) ...@@ -1455,16 +1455,16 @@ ReturnMatrix geqt(const Matrix& mat1,const Matrix& mat2)
res.Release(); res.Release();
return res; return res;
} }
ReturnMatrix geqt(const Matrix& mat1,const float a) ReturnMatrix geqt(const Matrix& mat,const float a)
{ {
int ncol = mat.Ncols(); int ncols = mat.Ncols();
int nrow = mat.Nrows(); int nrows = mat.Nrows();
Matrix res(nrow,ncol); Matrix res(nrows,ncols);
res=0.0; res=0.0;
for (int ctr1 = 1; ctr1 <= nrows; ctr1++) { for (int ctr1 = 1; ctr1 <= nrows; ctr1++) {
for (int ctr2 =1; ctr2 <= ncols; ctr2++) { for (int ctr2 =1; ctr2 <= ncols; ctr2++) {
if( mat1(ctr1,ctr2) >= a){ if( mat(ctr1,ctr2) >= a){
res(ctr1,ctr2) = 1.0; res(ctr1,ctr2) = 1.0;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment