Re: [eigen] nulify row of SparseMatrix

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

you can do it indirectly like this:

SparseVector<double> sp_zero(m);
SparseMatrix<double> mat(m,n);
.....
mat.col(j) = sp_zero;

cheers,
gael


On Fri, Nov 23, 2012 at 1:56 AM, Angelos Mantzaflaris
<filiatra@xxxxxxxxx> wrote:
> Hello,
>
> I have a SparseMatrix and I need to set a row to zero, or set a column to
> zero, i.e. remove all coefficients at a certain row/column.
>
> Does this exist? If not, what is the best way to do it ?
>
> thank you in advance
> Angelos
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/