Re: Windows gfortran binaries
- From: Ken Fairfield <Ken@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Mar 2007 17:42:25 -0700
Brooks Moses wrote:
Richard Maine wrote:In addition to letters(ivec) being a vector subscript, there is one
other thing going on here that might not be obvious to some (but is fine
and standard-conforming).
Because letters(ivec) is an array, the concatenation here is an
elemental operation. Suppose, by way of example, that ivec=[1,2,2], so
that letters(ivec)=["a","b","b"]. The concatenation does *NOT*
concatenate the elements of the array together. Instead, it elementally
concatenates the scalar "a" with each element of the array. Thus
"a"//letters(ivec) evaluates to the array ["aa","ab","ab"].
Thank you. I was wondering what was going on with that.
Ditto that thank you, to Richard and to Beliavsky. ;-)
I was aware of vector subscripts, but conflated it with a recent
discussion where a poster expected to be able to use a single vector
of length 2 for both subscripts in a rank-2 array reference, IIRC.
(That one, of course, is incorrect.)
And I'm very thankful for Richard's example above: to my mind, it
makes it much clearer what's going on with vector subscripts.
-Ken
--
Ken & Ann Fairfield
What: Ken dot And dot Ann
Where: Gmail dot Com
.
- References:
- Windows gfortran binaries
- From: FX
- Re: Windows gfortran binaries
- From: Beliavsky
- Re: Windows gfortran binaries
- From: Ken Fairfield
- Re: Windows gfortran binaries
- From: Beliavsky
- Re: Windows gfortran binaries
- From: Richard Maine
- Re: Windows gfortran binaries
- From: Brooks Moses
- Windows gfortran binaries
- Prev by Date: Need help with fortran file output
- Next by Date: Re: Gfortran 2 years behind G95 and still not ready for prime time
- Previous by thread: Re: Windows gfortran binaries
- Next by thread: Re: Windows gfortran binaries
- Index(es):
Relevant Pages
|