Thread Subject: determinant of a banded matrix

Subject: determinant of a banded matrix

From: Deepak

Date: 19 Jun, 2008 21:14:02

Message: 1 of 13

Is it any easier to find the determinant of a banded matrix
than a full matrix? Any suggestions what's the best way to
do it?

Subject: determinant of a banded matrix

From: carlos lopez

Date: 19 Jun, 2008 23:35:03

Message: 2 of 13

"Deepak " <deepak.trivedi@gmail.com> wrote in message
<g3ei6q$6vo$1@fred.mathworks.com>...
> Is it any easier to find the determinant of a banded matrix
> than a full matrix? Any suggestions what's the best way to
> do it?
One simple solution (but there might be some simpler ones)
is to reduce the matrix to triangular form, as you will do
for Gaussian elimination. The determinant is just the
product of the diagonal elements.
That should cost of the O(n) instead of O(n^3) which is
typical for full matrix.
Regards
Carlos

Subject: determinant of a banded matrix

From: Jos

Date: 20 Jun, 2008 08:32:02

Message: 3 of 13

"Deepak " <deepak.trivedi@gmail.com> wrote in message
<g3ei6q$6vo$1@fred.mathworks.com>...
> Is it any easier to find the determinant of a banded matrix
> than a full matrix? Any suggestions what's the best way to
> do it?

What do you mean by easier? DET(A) works like a charm for
both full and sparse matrices A.

Jos


Subject: determinant of a banded matrix

From: Tim Davis

Date: 20 Jun, 2008 14:08:03

Message: 4 of 13

"Deepak " <deepak.trivedi@gmail.com> wrote in message
<g3ei6q$6vo$1@fred.mathworks.com>...
> Is it any easier to find the determinant of a banded matrix
> than a full matrix? Any suggestions what's the best way to
> do it?

The more basic question is why? Why do you want to compute
the determinant? If you're worried about performance, then
that means you're trying to do this for large matrices. If
that's the case, then you really shouldn't use det at all.

Det is useless for practical computations. It's only of
theoretical importance. Use the SVD instead.

Subject: determinant of a banded matrix

From: Deepak

Date: 30 Jun, 2008 20:46:02

Message: 5 of 13

Thanks a lot for all your responses. Tim, can you please
explain how to use SVD for finding the determinant?

Basically, I have to solve the system

        det(A(x,c)) = 0

for many different values of scalar c. A can be quite large
(say, 50000 x 50000), but will be sparse with a banded,
albeit quite complex, structure.

Regards,
Deepak


"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g3gdk2$kga$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g3ei6q$6vo$1@fred.mathworks.com>...
> > Is it any easier to find the determinant of a banded matrix
> > than a full matrix? Any suggestions what's the best way to
> > do it?
>
> The more basic question is why? Why do you want to compute
> the determinant? If you're worried about performance, then
> that means you're trying to do this for large matrices. If
> that's the case, then you really shouldn't use det at all.
>
> Det is useless for practical computations. It's only of
> theoretical importance. Use the SVD instead.

Subject: determinant of a banded matrix

From: Tim Davis

Date: 4 Jul, 2008 11:23:02

Message: 6 of 13

"Deepak " <deepak.trivedi@gmail.com> wrote in message
<g4bgma$696$1@fred.mathworks.com>...
> Thanks a lot for all your responses. Tim, can you please
> explain how to use SVD for finding the determinant?
>
> Basically, I have to solve the system
>
> det(A(x,c)) = 0
>
> for many different values of scalar c. A can be quite large
> (say, 50000 x 50000), but will be sparse with a banded,
> albeit quite complex, structure.
>
> Regards,
> Deepak

c is a column of A? What is x? "A(x,c)" has no meaning; I
assume it's some kind of expression that's a function of x
and c that gives a matrix A? x is an unknown you're trying
to solve for? Without details it's impossible to suggest
anything.

The SVD won't work on a matrix that large. You should also
avoid the "det" function itself; for such large matrices,
"det" will almost always underflow or overflow.

"Solving" for det(A)=0 sounds like you're trying to find
some kind of null space of the matrix A. In that case,
again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:43:03

Message: 7 of 13

Thanks Tim. I'm really sorry for being so unclear in my
description of the problem. Each entry of A is a function of
x and c. c is a known constant scalar, and x is the unknown
scalar we are solving for.

I am sure I am not formulating the problem in the best
possible way, and I would really appreciate it, if you can
take a look at the equation I am trying to solve, and give
your suggestion regarding the best approach to solve it.

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak

"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:45:39

Message: 8 of 13

Thanks Tim. I'm really sorry for being so unclear in my
description of the problem. Each entry of A is a function of
x and c. c is a known constant scalar, and x is the unknown
scalar we are solving for.

I am sure I am not formulating the problem in the best
possible way, and I would really appreciate it, if you can
take a look at the equation I am trying to solve, and give
your suggestion regarding the best approach to solve it.

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak

"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:50:25

Message: 9 of 13

Thanks Tim. I'm really sorry for being so unclear in my
description of the problem. Each entry of A is a function of
x and c. c is a known constant scalar, and x is the unknown
scalar we are solving for.

I am sure I am not formulating the problem in the best
possible way, and I would really appreciate it, if you can
take a look at the equation I am trying to solve, and give
your suggestion regarding the best approach to solve it.

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak

"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:51:43

Message: 10 of 13

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak


"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:55:52

Message: 11 of 13

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak


"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:56:54

Message: 12 of 13

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak


"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

Subject: determinant of a banded matrix

From: Deepak

Date: 7 Jul, 2008 14:56:54

Message: 13 of 13

I am trying to solve Eqs. 29, 29a, 29b and 36 of this paper:

Dynamic stability of elastic structures: a finite element
approach

L. Briseghella, C. E. Majorana, and C. Pellegrino

Computers & Structures
Volume 69, Issue 1, October 1998, Pages 11-25

(http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V28-3TVPGF9-2&_user=852002&_rdoc=1&_fmt=&_orig=search&_sort=d&view=c&_acct=C000045923&_version=1&_urlVersion=0&_userid=852002&md5=6a35ee465cd2831b94b31127bd0fd602)


In my case Ps is 0, and I have to find pairs (Pd,theta) that
make the determinants in the equations zero.

If you have any problem accessing the paper, please let me know.

Thanks a lot!
Deepak


"Tim Davis" <davis@cise.ufl.edu> wrote in message
<g4l16m$19t$1@fred.mathworks.com>...
> "Deepak " <deepak.trivedi@gmail.com> wrote in message
> <g4bgma$696$1@fred.mathworks.com>...
> > Thanks a lot for all your responses. Tim, can you please
> > explain how to use SVD for finding the determinant?
> >
> > Basically, I have to solve the system
> >
> > det(A(x,c)) = 0
> >
> > for many different values of scalar c. A can be quite large
> > (say, 50000 x 50000), but will be sparse with a banded,
> > albeit quite complex, structure.
> >
> > Regards,
> > Deepak
>
> c is a column of A? What is x? "A(x,c)" has no meaning; I
> assume it's some kind of expression that's a function of x
> and c that gives a matrix A? x is an unknown you're trying
> to solve for? Without details it's impossible to suggest
> anything.
>
> The SVD won't work on a matrix that large. You should also
> avoid the "det" function itself; for such large matrices,
> "det" will almost always underflow or overflow.
>
> "Solving" for det(A)=0 sounds like you're trying to find
> some kind of null space of the matrix A. In that case,
> again, "det" is a horrible way to formulate the problem.

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
determinant Deepak 19 Jun, 2008 17:15:05
banded matrix Deepak 19 Jun, 2008 17:15:05
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com