<div dir="ltr">Hello PETSc-Users,<div><br></div><div>I am working on an application where we capture the A matrix in a linear system Ax=b, which is solved using Petsc. Let us also say that the matrix A can change after a few iterations. We want to capture only the changed matrices and simply avoid the duplicate ones.</div><div><br></div><div>I was considering using (or defining) a Set-like data structure that stores only the Mat objects which have changed entries. So a hash function that can operate on a sparse matrix would be pretty useful here.</div><div><br></div><div>This seems like a common enough use case and I was wondering if anyone can give their inputs on defining a hash function that can operate on sparse matrices. One such link I had found online is:</div><div><a href="http://stackoverflow.com/questions/10638373/suitable-hash-function-for-matrix-sparsity-pattern">http://stackoverflow.com/questions/10638373/suitable-hash-function-for-matrix-sparsity-pattern</a><br></div><div><br></div><div>Any thoughts or comments would be great here.</div><div><div><br></div><div><br></div>Thanking You,<br><div class="gmail_signature"><div dir="ltr">Ramachandran</div></div>
</div></div>