Loading src/libnptm/lapack_calls.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -162,6 +162,7 @@ void zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, doubl #else oldmax = cabs(arr_residual[maxindex]); #endif printf("Initial max residue = %g\n", oldmax); if (oldmax < accuracygoal) iteraterefine = false; } int iter; Loading @@ -178,6 +179,7 @@ void zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, doubl #else double newmax = cabs(arr_residual[maxindex]); #endif printf("Max residue after %d iterations = %g\n", iter+1, newmax); if ((refinemode==2) && ((newmax > oldmax)||(newmax < accuracygoal))) iteraterefine = false; oldmax = newmax; } Loading src/libnptm/magma_calls.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ void magma_zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, magma_zgetvector(1, d_a_residual+maxindex, 1, &magmamax, 1, queue); // take the module oldmax = cabs(magmamax.x + I*magmamax.y); printf("Initial max residue = %g\n", oldmax); if (oldmax < accuracygoal) iteraterefine = false; } // begin correction loop (should iterate maxiters times) Loading @@ -192,6 +193,7 @@ void magma_zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, magma_zgetvector(1, d_a_residual+maxindex, 1, &magmamax, 1, queue); // take the module double newmax = cabs(magmamax.x + I*magmamax.y); printf("Max residue after %d iterations = %g\n", iter+1, newmax); // if the maximum in the residual decreased from the previous iteration, // update oldmax and go on, otherwise no point further iterating refinements if ((refinemode==2) && ((newmax > oldmax)||(newmax < accuracygoal))) iteraterefine = false; Loading Loading
src/libnptm/lapack_calls.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -162,6 +162,7 @@ void zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, doubl #else oldmax = cabs(arr_residual[maxindex]); #endif printf("Initial max residue = %g\n", oldmax); if (oldmax < accuracygoal) iteraterefine = false; } int iter; Loading @@ -178,6 +179,7 @@ void zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, doubl #else double newmax = cabs(arr_residual[maxindex]); #endif printf("Max residue after %d iterations = %g\n", iter+1, newmax); if ((refinemode==2) && ((newmax > oldmax)||(newmax < accuracygoal))) iteraterefine = false; oldmax = newmax; } Loading
src/libnptm/magma_calls.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ void magma_zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, magma_zgetvector(1, d_a_residual+maxindex, 1, &magmamax, 1, queue); // take the module oldmax = cabs(magmamax.x + I*magmamax.y); printf("Initial max residue = %g\n", oldmax); if (oldmax < accuracygoal) iteraterefine = false; } // begin correction loop (should iterate maxiters times) Loading @@ -192,6 +193,7 @@ void magma_zinvert_and_refine(dcomplex **mat, np_int n, int &jer, int &maxiters, magma_zgetvector(1, d_a_residual+maxindex, 1, &magmamax, 1, queue); // take the module double newmax = cabs(magmamax.x + I*magmamax.y); printf("Max residue after %d iterations = %g\n", iter+1, newmax); // if the maximum in the residual decreased from the previous iteration, // update oldmax and go on, otherwise no point further iterating refinements if ((refinemode==2) && ((newmax > oldmax)||(newmax < accuracygoal))) iteraterefine = false; Loading