[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
array manipulation problem
- Subject: array manipulation problem
- From: "Martin B. Schmidt" <maschmi(at)uni-freiburg.de>
- Date: Wed, 07 Jun 2000 09:21:27 +0200
- Newsgroups: comp.lang.idl-pvwave
- Organization: Rechenzentrum der Universitaet Freiburg, Germany
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19895
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