Thread Subject: backslash for sparse matrices

Subject: backslash for sparse matrices

From: Wolfgang Schwanghart

Date: 4 May, 2009 09:26:02

Message: 1 of 3

Dear all,

I am just trying to figure out, which algorithm is used when invoking \ for a sparse linear system of equations.

for spparms('spumoni',2) I get following output for a A being square and sparse.

sp\: bandwidth = 181+1+181.
sp\: is A diagonal? no.
sp\: is band density (0.01) > bandden (0.50) to try banded solver? no.
sp\: is A triangular? no.
sp\: is A morally triangular? yes.
sp\: permute and solve.

What means morally triangular in that case? Does it mean, A is a permutation of a triangular matrix --> then X is computed with a permuted backsubstitution algorithm.

or does Matlab use CHOLMOD to compute X?

Thanks for your answers,
Wolfgang

Subject: backslash for sparse matrices

From: Steven Lord

Date: 4 May, 2009 14:06:30

Message: 2 of 3


"Wolfgang Schwanghart" <schwanghartremove.this@googlemail.com> wrote in
message news:gtmcb9$qtc$1@fred.mathworks.com...
> Dear all,
>
> I am just trying to figure out, which algorithm is used when invoking \
> for a sparse linear system of equations.

Take a look at the Algorithm section of the MLDIVIDE reference page:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/mldivide.html

--
Steve Lord
slord@mathworks.com

Subject: backslash for sparse matrices

From: Tim Davis

Date: 4 May, 2009 22:56:02

Message: 3 of 3

"Wolfgang Schwanghart" <schwanghartremove.this@googlemail.com> wrote in message <gtmcb9$qtc$1@fred.mathworks.com>...
> Dear all,
>
> I am just trying to figure out, which algorithm is used when invoking \ for a sparse linear system of equations.
>
> for spparms('spumoni',2) I get following output for a A being square and sparse.
>
> sp\: bandwidth = 181+1+181.
> sp\: is A diagonal? no.
> sp\: is band density (0.01) > bandden (0.50) to try banded solver? no.
> sp\: is A triangular? no.
> sp\: is A morally triangular? yes.
> sp\: permute and solve.
>
> What means morally triangular in that case? Does it mean, A is a permutation of a triangular matrix --> then X is computed with a permuted backsubstitution algorithm.
>
> or does Matlab use CHOLMOD to compute X?
>
> Thanks for your answers,
> Wolfgang

"Morally triangular" means that A is a permuted triangular matrix. The solver used is one written by The MathWorks (not me). It's not using CHOLMOD in that case.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
sparse Wolfgang Schwanghart 4 May, 2009 05:29:06
rssFeed for this Thread

Contact us at files@mathworks.com