[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

array manipulation problem



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