Dear all,
This must be a very dumb question.
When I read a matlab code, just say, a simple 2 by 2 matrix A, it can be written as
A = [1 2; 3 4]
Now in Fortran, do I have to things like below?
reshape( [1, 3, 2, 4], [2,2] )
I know I can always use reshape, but, is there more direct and convenient way to construct a Matrix?
I am asking this because in the new Fortran standard, we can already construct 1D array like
B = [1, 2, 3, 4, 5]
It is already very similar with python/julia/matlab.
It makes me think that perhaps modern Fortran can also construct 2D matrix like python/julia/matlab?
Thank you very much in advance!