Re: Windows gfortran binaries



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
.



Relevant Pages

  • Re: Does VBscript support " & _" for long strings?
    ... With 1000 concatenations, the concatenation operator takes over 200 times longer than Join/Array. ... to an array element. ... Assigning a large string to an element in an array apparently is slightly faster than creating the same array using the Array function, but not so much that Array could be making superfluous copies of the string. ... Dim start, finish, i, total ...
    (microsoft.public.scripting.vbscript)
  • How to concatenate nested arrays of strings
    ... I'm writing perl cgi and I like to buffer my output in an array of strings. ... Is there a more compact way of performing this nested concatenation? ... concatenates the elements first argument. ...
    (perl.beginners)
  • Re: Windows gfortran binaries
    ... "vector subscript", a very useful feature introduced in Fortran 90. ... the concatenation here is an ... concatenate the elements of the array together. ...
    (comp.lang.fortran)
  • Re: Want to reduce download time
    ... string builder functionality using arrays: ... Normal concatenation using '&' is *very* slow and if you do a lot of it will ... Using the array method is approx. ... what they are doing is making use of Dictionary objects ...
    (microsoft.public.scripting.vbscript)
  • Re: 0xC000 0005 exception in CFrameWnd::OnCmdMsg()
    ... The problem was a stupid typo on my part; I had reduced an array size but a factor of 100 and was initialising it off the end using the wrong but similarly named constant. ... my status bar indicators and I get farther before I crash. ... NULL (not sure if this okay or not). ... gordon at gordys dot demon dot co dot uk ...
    (microsoft.public.vc.mfc)