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

Home » Public Forums » archive » indexing bug?
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: indexing bug? [message #92893 is a reply to message #92892] Thu, 17 March 2016 23:01 Go to previous messageGo to previous message
Dae-Kyu Shin is currently offline  Dae-Kyu Shin
Messages: 25
Registered: February 2015
Junior Member
2016년 3월 18일 금요일 오후 2시 57분 28초 UTC+9, Dae-Kyu Shin 님의 말:
> Hi
>
> for example
>
> arr = indgen(3)
>
> ;; in this case, of course error occuring
> print, arr[5]
>
> ;; but in this case, there is no error
> print, arr[[5]]
>
> is this bug??
>
> Thanks


and in this case

print, arr[[-1]]

->> result = 0
this result is not coincide my expectation.
my expectation is : print, arr[-1]

IDL 8.5.1
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot function failing!
Next Topic: Take values from several arrays with nearest neighbour matching

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

Current Time: Sun Oct 12 00:01:54 PDT 2025

Total time taken to generate the page: 0.01009 seconds