how to use 1D array as a multidimensional array
From: Kamaraju Kusumanchi (kk288_at_cornell.edu)
Date: 06/28/04
- Next message: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Previous message: Herman D. Knoble: "Re: Compiler query"
- Next in thread: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Reply: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Reply: glen herrmannsfeldt: "Re: how to use 1D array as a multidimensional array"
- Reply: Richard Maine: "Re: how to use 1D array as a multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jun 2004 11:50:58 -0400
I am not sure what the technical term for this is. But i guess it could
be called array aliasing.
I have a 1D array declared by
real, dimension(100) :: A
Now I want to access this array as a "2D equivalent"
like B(i,j) where B is a 10x10 array and
B(i,j) = A(i*10+j)
required functionalities
1) As soon as one element of A changes, B should automatically get the
new value.
2) Should be able to access the array by both A, B.
3) If possible there should not be two instances of A, B.
What is most easy way to achieve the above functionality? Does fortran
90 have some nice subroutines which does this?
If is of any help, I will be using debian unstable, ifc 7.1 or absoft
8.0, Fortran 90/95
thanks in advance
raju
- Next message: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Previous message: Herman D. Knoble: "Re: Compiler query"
- Next in thread: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Reply: Jugoslav Dujic: "Re: how to use 1D array as a multidimensional array"
- Reply: glen herrmannsfeldt: "Re: how to use 1D array as a multidimensional array"
- Reply: Richard Maine: "Re: how to use 1D array as a multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|