Skip to content
Snippets Groups Projects
Commit 8e9d499b authored by Tim Behrens's avatar Tim Behrens
Browse files

*** empty log message ***

parent 07d1d7ec
No related branches found
No related tags found
No related merge requests found
......@@ -1560,7 +1560,7 @@ void element_mod_n(Matrix& Mat,double n)
for( int j=1;j<=Mat.Ncols();j++){
for( int i=1;i<=Mat.Nrows();i++){
if( !( (Mat(i,j)>0) && (Mat(i,j)<n) ) ){
while( !( (Mat(i,j)>0) && (Mat(i,j)<n) ) ){
tmp = ( Mat(i,j) - rounddouble(Mat(i,j)/n)*n );
Mat(i,j)= tmp > 0 ? tmp : tmp + n;
}
......
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