Variables in fortran & array use
Variables in fortran & array use
(OP)
Hi, I am using fortran95 for writing a code.my doubt are:
1. Whether it is possible to autogenerate a variable. Ie; for i=1, the variable should be k1, then k2 and so on...
2. I have 2d arrays k1, k2, till k10 which are of nxn size...is it possible to have an array'k' which is 10 x 1 and can store all 10 nxn matrices in this. ..
Thanks for any help on this.
1. Whether it is possible to autogenerate a variable. Ie; for i=1, the variable should be k1, then k2 and so on...
2. I have 2d arrays k1, k2, till k10 which are of nxn size...is it possible to have an array'k' which is 10 x 1 and can store all 10 nxn matrices in this. ..
Thanks for any help on this.





RE: Variables in fortran & array use
RE: Variables in fortran & array use
RE: Variables in fortran & array use
Why? You could allocate an array of the appropriate size and store all the values in said array. I'm not sure what you're asking for is even possible in Fortran or similar compiled languages (see http://stackoverflow.com/questions/9536346/fortran...) like it would be in an interpreted language like Python or MATLAB.
RE: Variables in fortran & array use
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers
RE: Variables in fortran & array use
is it possible to store 2d arrays as elements in a 1d array
RE: Variables in fortran & array use
RE: Variables in fortran & array use
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers