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

Home » Public Forums » archive » Re: Append to an array
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: Append to an array [message #5455] Thu, 14 December 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
"Frank J. ?ynes" <frank@spacetec.no> writes:

> khilman@vision.d.umn.edu (Kevin J. Hilman) wrote:
>>
>> Is there an easy way to append an element to a vector, without making
>> a new vector with a bigger size, copying the old vector over and then
>> adding the new element.
>>
>> --
>> Kevin Hilman
>> khilman@d.umn.edu

> Do you mean something like
> ; create vector
> a = findgen(100)
> ; Append an element
> a = [temporary(a), 452]

Although it isn't obvious from the above statements, I believe that Frank
J. ?ynes is correct about what happens internally.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: SGI RGB image reader would be wonderful.
Next Topic: Need widget help...

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

Current Time: Sun Oct 12 07:35:39 PDT 2025

Total time taken to generate the page: 1.44373 seconds