[petsc-users] matsetvaluesblocked4_
Mark Adams
mfadams at lbl.gov
Thu May 28 05:43:29 CDT 2020
>
>
> >
> > *if (rp[low] == col) high = low+1;else * if (rp[t] > col) high = t;
> > else low = t;
>
> Replacing a single comparison per bsearch iteration with two doesn't
> seem like a good choice to me.
>
>
It forces the bisection search and the linear search to terminate in one
iteration.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200528/a1152fe3/attachment.html>
More information about the petsc-users
mailing list