<div dir="ltr"><pre>Dear all,
In CoinPackedMatrix(or other coinor library) is there<br> a way to get the matrix in some standard format (for e.g. CSC etc),<br>so that I can use some standard libraries like armadillo or eigen.<br> Even lapack/blas will work. Fetching and copying each individual<br>
element is one way, but I want to maintain sparse storage.<br> I need to do some matrix computations like dot product of two <br>different rows, getting upper triangular elements of AA^T,<br> solving Ax=b etc.
Also, is there is a way to create identity matrix outside <br>(let us say using some 2d array in C++) and then import it to a<br> matrix in CoinPackedMatrix form. Doing it directly, takes a lot of<br> time when no. of columns is large. Is there a better way to do this.
I did the following stuff, but it took nearly 700 secs for<br> numberColumns <font color="#800000">>200000<br><br></font> ------------------------------------------------------------------
CoinPackedMatrix *matrix_col=new CoinPackedMatrix(false,0,0);
matrix_col->setDimensions(0,numberColumns);
CoinPackedVector *row=new CoinPackedVector[numberColumns];
for(int i=0;i<numberColumns;i++)
{
row[i].insert(i,1);
matrix_col->appendRow(row[i]);
}
-------------------------------------------------------------------
<br>Thanks,
Mouli</pre></div>