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

Home » Public Forums » archive » diagonal dominant
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: diagonal dominant [message #83046 is a reply to message #82949] Wed, 30 January 2013 09:00 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
On Wednesday, January 30, 2013 9:26:11 AM UTC-5, Gompie wrote:
> Hi,
>
> I have a matrix( 256,256) and I want to convert it into diagonal dominant form.
>
> What is the best way to do it. Does IDL have function to do it?
>
> Gompie

Well, if you're building a matrix by hand, try DIAG_MATRIX. You can put values along the diagonal, or offset them by a set number of rows. For example:

print,diag_matrix([3,4,5],1)
0 3 0 0
0 0 4 0
0 0 0 5
0 0 0 0

-Brian
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to label longitude?
Next Topic: equivalent width measure in idl

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

Current Time: Thu Oct 09 15:18:23 PDT 2025

Total time taken to generate the page: 1.04385 seconds