PARAMETER declaration

David Ham David.Ham@imperial.ac.uk
Tue Apr 29 15:29:00 GMT 2008


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



More information about the Fortran mailing list