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

Home » Public Forums » archive » array manipulation problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
array manipulation problem [message #20371] Wed, 07 June 2000 00:00 Go to previous message
Martin B. Schmidt is currently offline  Martin B. Schmidt
Messages: 1
Registered: June 2000
Junior Member
Hi,

Given:

n=500
a=FltArr(n,n,n)

How can I assign
a[i,j,k] = i^2+j^2+k^2 for all i,j,k (i,j,k=0,1,2,..,n-1)
without using any loop?

Any idea?

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how can I implement arcsinc
Next Topic: Re: MEM spectral analysis

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

Current Time: Wed Oct 08 16:56:40 PDT 2025

Total time taken to generate the page: 0.00440 seconds