> On Apr 25, 2021, at 12:09 PM, Rui Silva <[email protected]> wrote:
> 
> I am writing to you, to ask if there is any simple way to perform 
> element-wise multiplication of 2 mpiaij matrices in Petsc?

 You can imitate MatAXPY_SeqAIJ() on each of the two parts of the MPIAIJ 
matrix. 


> Furthermore is there any way to reassemble a matrix that has some zeros 
> stored, to reduce the sparsity of the matrix?

   MatChop()
> 
> Thanks a lot in advance,
> 
> R
> 
> -- 
> Dr. Rui Emanuel Ferreira da Silva
> Departamento de Física Teórica de la Materia Condensada
> Universidad Autónoma de Madrid, Spain
> Max Born Institute, Berlin, Germany
> https://ruiefdasilva.wixsite.com/ruiefdasilva
> https://mmuscles.eu/
> https://www.mbi-berlin.de/index_en.html
> 

Reply via email to