# Is there any efficient algorithm to compute the determinant of a sparse matrix?

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 19, 2012, 15:42 Is there any efficient algorithm to compute the determinant of a sparse matrix? #1 Member   Hector Redal Join Date: Aug 2010 Location: Madrid, Spain Posts: 82 Rep Power: 8 Hello, I would like to know if there is any efficient way to compute the determinant of an sparse matrix? Kind regards, Hector.

 July 20, 2012, 00:36 #2 Senior Member     p ding Join Date: Mar 2009 Posts: 309 Rep Power: 10 LU decomposition for the sparse decomposition. the determinant can be abtained by sum the digonal of mattrix.

July 20, 2012, 06:35
#3
Member

Hector Redal
Join Date: Aug 2010
Posts: 82
Rep Power: 8
Quote:
 Originally Posted by ztdep LU decomposition for the sparse decomposition. the determinant can be abtained by sum the digonal of mattrix.
Hi Ztdep,

One more question: Do you know where I can find LU decomposition for sparse matrix (article, reference)?

Best regards,
Hector.

 July 20, 2012, 06:55 #4 Senior Member     p ding Join Date: Mar 2009 Posts: 309 Rep Power: 10 http://www.cise.ufl.edu/research/sparse/CSparse/ what is your matrix dimension? if your matrix dimension is not very large, i think we can use the traditional computational method to compute it.

July 20, 2012, 07:09
#5
Senior Member

Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 487
Rep Power: 13
Quote:
 Originally Posted by HectorRedal Hi Ztdep, Thanks for your response. One more question: Do you know where I can find LU decomposition for sparse matrix (article, reference)? Best regards, Hector.

One good book that also provides source code (i think).

Remember that LU factorization for sparse matrix may not be that sparse. Whether ILU is sufficient for your need or not is what shall think.

 July 20, 2012, 08:53 #6 Senior Member     p ding Join Date: Mar 2009 Posts: 309 Rep Power: 10 no ilu is incomplete lu , it is an approximation. try to use lapack http://www.netlib.org/lapack/double/dgetrf.f * DGETRF computes an LU factorization of a general M-by-N matrix A * using partial pivoting with row interchanges.

July 20, 2012, 09:00
#7
Senior Member

Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 487
Rep Power: 13
Quote:
 Originally Posted by ztdep no ilu is incomplete lu , it is an approximation. http://people.sc.fsu.edu/~jburkardt/index.htmlffff

I am pretty sure what ILU is. I am also sure that calculating LU from sparse matrix is not efficient thing to do. Thats why I said think if ILU is sufficient for the needs.

July 21, 2012, 03:26
#8
Member

Hector Redal
Join Date: Aug 2010
Posts: 82
Rep Power: 8
Quote:
 Originally Posted by ztdep http://www.cise.ufl.edu/research/sparse/CSparse/ what is your matrix dimension? if your matrix dimension is not very large, i think we can use the traditional computational method to compute it.
Hi ztdep,

Thank you very much for the information you had provided to me. This is by far more than I needed. Thanks.

The matrix dimension for the LU decompostion varies from 2 to 10. This is the range I need.

I am developing a software for CFD using the finite element method, and for calculating the element matrices for the algorithm, I need the determinant of this matrices.

As mentioned before, I am thinking of using the LU decomposition for calculation of the determinant.

July 21, 2012, 03:44
#9
Member

Hector Redal
Join Date: Aug 2010
Posts: 82
Rep Power: 8
Quote:
 Originally Posted by arjun http://books.google.de/books/about/D...EC&redir_esc=y One good book that also provides source code (i think). Remember that LU factorization for sparse matrix may not be that sparse. Whether ILU is sufficient for your need or not is what shall think.
Hello Arjun,

Thanks for the information.
I agree with you that LU factorization may not be an sparse matrix.
The need for LU factorization is to compute the determinant of the sparse matrix.
That's the reason why I need it. Maybe, as you state, it is sufficient to compute the iLU for estimation of the determinant.
This is a good point to think about.

Thanks again.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Italo Main CFD Forum 0 December 19, 2011 04:01 alberto_cuoci Main CFD Forum 1 July 5, 2011 06:37 sina_mech Main CFD Forum 7 November 20, 2009 14:52 lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 21:47 Takuya TSUJI Main CFD Forum 4 May 9, 2001 18:07

All times are GMT -4. The time now is 21:10.