Re: [petsc-users] remove new zeros values with petsc4py

2025-04-16 Thread Pierre Jolivet
Dear Benoit, > On 16 Apr 2025, at 2:36 PM, NENNIG Benoit > wrote: > > Dear petsc users, > > I need to compute the difference of two matrices M(nu) and M(nu+epsilon) to > estimate the derivative of the matrix with respect to the parameter nu. > Since only very few entries are modified by epsil

[petsc-users] remove new zeros values with petsc4py

2025-04-16 Thread NENNIG Benoit
Dear petsc users, I need to compute the difference of two matrices M(nu) and M(nu+epsilon) to estimate the derivative of the matrix with respect to the parameter nu. Since only very few entries are modified by epsilon, D = M(nu+epsilon) - M(nu) contains many new zeros and I would like to remove