This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PARAMETER declaration


FX wrote:
[[1,2,3],[2,3,4],[3,4,1],[4,1,2]]

Is this a bug or the syntax is non-standard? In the second case which
is the right one?



The syntax is non standard. You need to use the RESHAPE intrinsic, like this:


RESHAPE ([3,2], [1,2,3,2,3,4,3,4,1,4,1,2])


Isn't the syntax of reshape:


reshape([1,2,3,2,3,4,3,4,1,4,1,2], [3,4])

David

--
Dr David Ham
Applied Modelling and Computation Group,
Department of Earth Science and Engineering,
Imperial College London,

http://amcg.ese.ic.ac.uk/index.php?title=David_Ham


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]