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

Home » Public Forums » archive » regress
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: regress [message #65813 is a reply to message #65671] Tue, 17 March 2009 16:47 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Mar 17, 5:51 pm, David Fanning <n...@dfanning.com> wrote:
> anniebry...@gmail.com writes:
>> I have two 2D arrays I would like to regress.  Both were created with
>> the variance command and  are intarr(673,274).  Does one of these need
>> to be a vector?  Both need to be a vector? If so, is there a way to
>> convert them from an array to a vector?  I watched someone do this
>> very quickly yesterday, but can not remember how.
>
> Whoops, forgot the DIMENSIONS keyword:
>
>    s = Size(array, /Dimensions)
>    vector = Reform(array, s[0]*s[1])
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Incidentally, I've often wondered if that was any more or less
efficient than

vector = (s)[*]

Anyone have any thoughts?

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing BIG RGB GEOTIFF
Next Topic: IDL version

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

Current Time: Wed Oct 08 17:30:33 PDT 2025

Total time taken to generate the page: 0.00392 seconds