-----Original Message-----
From: Zhongfu Zhou <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: Dienstag, 11. Juni 2002 13:36
Subject: how to define and value a two-element matrix?
>Could you all please give me some dirctions about how can can define and
>value a matrix which just include two elements, for example a(1,1)=1,
>a(1,2)=2, since the array a(2) can't be used in calculation as a matrix.
Try
real, dimension(1,2) :: a
More generally, the intrinsic function spread can be used to obtain an array
increased in rank by one.
Regards,
Mike Metcalf
|