[eigen] row and col setZero in sparse matrices

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


Good evening,

I write to ask whether you have considered implementing the method setZero for rows and columns of sparse matrices. As far as I understand, we can't do,
A.col(index).setZero(); // A is sparse

This would be very useful to set a known value in a system of equations,
  b-=value*A.col(dof);
  A.col(dof).setZero();
  A.row(dof).setZero();
  A.coeffRef(dof,dof)=1.0;
  b(dof)=value;

Regards,
Daniel


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