Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Stuffing the symmetric matrix is so slow?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Stuffing the symmetric matrix is so slow?


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Stuffing the symmetric matrix is so slow?
  • Date: Thu, 07 Jun 2007 13:58:03 +0200
  • Organization: INRIA Sophia-Antipolis

Hi,

Your code below suggests that you are using a dense matrix.
TAUCS is a *sparse* linear solver and uses a matrix format optimized to save space. It will be very slow if you use it with a dense matrix.

Best regards,
Laurent Saboret
INRIA Sophia-Antipolis



a écrit :
Hello all, I am using CGAL for mesh editing and I am using TAUCS packaged in CGAL.
I find that it is very slow to stuff the symmetric matrix
Taucs_symmetric_solver_traits<T>::Matrix with set_coef(int i, int j, T val),
like this:
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++) {
M.set_coef(int i, int j, my_matrix[i][j]);
}
}
I know this may be because there is some optimizing work during the stuffing but it indeed dramatically slow down my program.
Please tell me how to tackle this.

Thanks in advance!





Archive powered by MHonArc 2.6.16.

Top of Page