comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Determinant of a matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Determinant of a matrix [message #86574 is a reply to message #86569] Wed, 20 November 2013 05:37 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mercredi 20 novembre 2013 13:09:48 UTC+1, fd_...@mail.com a écrit :
> Hi
>
>
>
> I want to check the linear independence of the columns on my matrix. I found the function DETERM() but this works only in cases where the matrix is NXN. In my case the matrix is NX4 (N-rows, 4-columns).
>
>
>
> How can I calculate the determinant of that matrix?
>
>
>
> Many Thanks
>
> Ma

> How can I calculate the determinant of that matrix?
You cannot, because determinant is not defined for a non square matrix.

> I want to check the linear independence of the columns on my matrix
What you are asking for is the rank of your matrix (i.e., mathematically, the number of independent columns). Matrix rank can be determined by singular value decomposition: the rank is the number of singular values which are not zero. In IDL, you can write:

if A is your matrix:
IDL> LA_SVD, A, W, U, V
IDL> rank_of_A = N_elements(W[where(W ne 0)])

alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calendar with days of the week
Next Topic: How to create 4D data matrix from 1D arrays?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:23:35 PDT 2025

Total time taken to generate the page: 1.68181 seconds