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

Home » Public Forums » archive » array chicanery
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
array chicanery [message #28053] Thu, 15 November 2001 16:11
nrh is currently offline  nrh
Messages: 19
Registered: September 2000
Junior Member
I've experienced some wierd business with arrays, and I'm hoping somebody can explain.
I have been using the IDL function PCOMP, calculating the pricipal components of some data.
If I feed in a float array to the function,
eg.
result=PCOMP(data,coefficients=eigenvectors,eigenvalues=eige nvalues,/covariance,/standardize)

I get a result, but when I redisplay the data array, it has changed. Since PCOMP only returns
a result, what is it doing to my original array, and why? There are no common variables, as far
as I know, so the original data should not change. I apologise in advance if this is blindingly
obvious, and of course, I can just make a copy of the original data into another variable to use
later, I am just curious as to what is going on.
Any thoughts?

Cheers
--
"For every complex problem, there is a solution that is simple, neat, and wrong."-H. L Mencken (1880-1956)

Rochelle Hatton
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: the dimension of array
Next Topic: TV and T3D?

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

Current Time: Wed Oct 08 14:56:25 PDT 2025

Total time taken to generate the page: 0.00459 seconds