[petsc-dev] strangness in Chebyshev estimate of eigenvalues

Jed Brown jed at jedbrown.org
Tue May 17 15:18:41 CDT 2016


Mark Adams <mfadams at lbl.gov> writes:

> Why not just set each index with hash(i) = (i >> 32)^i and forget
> VecSetRandom in here? 

Because if your vertices are numbered lexicographically on a Cartesian
grid, this gives you a plane.  But just put in the legit hash (the one I
linked is pretty good) and then you don't have to worry about
accidentally stumbling upon pathological cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160517/1090de50/attachment.sig>


More information about the petsc-dev mailing list