Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to handle symmetric sparse matrix ?

Subject: How to handle symmetric sparse matrix ?

From: evan um

Date: 22 Jul, 2008 20:14:03

Message: 1 of 2

Hi,

I have checked a few MATLAB manuals, but MATLAB does not
seem to have any routine to handle symmetric sparse
matrices. Does it mean that we have to use general sparse
matrix functions to handle symmetric one and sacrifice both
memory and speed?

If it is true, is there any reason we don't have symmetric
sparse matrix functions in MATLAB, whereas we see several
symmetric sparse matrix routines in Fortran codes?

Thank you for all helps and suggestions!

Best,
Evan

Subject: How to handle symmetric sparse matrix ?

From: Tim Davis

Date: 5 Aug, 2008 01:04:03

Message: 2 of 2

"evan um" <evanum@gmail.com> wrote in message
<g65f2b$9o8$1@fred.mathworks.com>...
> Hi,
>
> I have checked a few MATLAB manuals, but MATLAB does not
> seem to have any routine to handle symmetric sparse
> matrices. Does it mean that we have to use general sparse
> matrix functions to handle symmetric one and sacrifice both
> memory and speed?
>
> If it is true, is there any reason we don't have symmetric
> sparse matrix functions in MATLAB, whereas we see several
> symmetric sparse matrix routines in Fortran codes?
>
> Thank you for all helps and suggestions!
>
> Best,
> Evan

MATLAB stores both parts of a symmetric sparse matrix, upper
and lower. Many functions (such as chol) only look at half
the matrix. Others, like backslash, look at both parts,
determine that it's symmetric, and use a symmetric routine.

Tags for this Thread

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.

Contact us