Re: [eigen] Reusing a sparse matrix for SparseLU

[ Thread Index | Date Index | More Archives ]

Hi Alberto,

Thanks for the answer. Unfortunately, this still makes me create another array, I'd rather populate the elements directly.



Le lun. 3 déc. 2018 à 10:26, Alberto Luaces <alberto.luaces@xxxxxxxxx> a écrit :
Matthieu Brucher writes:
> Now,, I'd like to reuse the matrix instead of creating a new one, as I'm doing real-time computations and don't want any allocation there.
> Can I use the comma operator? Or is there another operator that I can use to update the matrix existing entries? I tried to find information online but couldn't find the best practice for this.

Hi, as per

you can use m.coeffs() to update the non-zero elements of the matrix as
a large array.


Quantitative analyst, Ph.D.

Mail converted by MHonArc 2.6.19+