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

Home » Public Forums » archive » Help with pointers
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: Help with pointers [message #91722 is a reply to message #91718] Fri, 14 August 2015 08:39 Go to previous messageGo to previous message
zacharyanorman is currently offline  zacharyanorman
Messages: 17
Registered: July 2015
Junior Member
Your error is probably coming from referencing A when you should be referencing *A_ptr, which now contains the values of A. Here is an example of how to do this:


a = findgen(216,216)
b = 1.1*findgen(216,216)
A_ptr = ptr_new(a,/no_copy)
diff = total (*A_ptr - b)
print, diff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Write 3dimensional array as bsq-file without using ENVI Methods
Next Topic: to create & overlay a polygon shape file

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

Current Time: Wed Oct 08 11:35:16 PDT 2025

Total time taken to generate the page: 0.00522 seconds