Re: dynamically growable vector?

From: Michael Metcalf (metcalfmetcalf_at_compuserve.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 09:14:16 +0100


"glen herrmannsfeldt" <gah@ugcs.caltech.edu> wrote in message
news:d058qr$771$1@gnus01.u.washington.edu...
>
> (If I remember right, for Fortran ALLOCATABLE it is allocate,
> copy to temporary, free and reallocate original, copy back.
> This might have been fixed in 2003.)

Fixed in the sense that the syntax is simpler in simple cases. To extend a
rank-one array with lower bound 1 by 2 extra values, you can write, e.g.,

arr = [arr, v1, v2]

but, as has been pointed out by Richard, under the bonnet there is still the
sequence of operations you describe.

Regards,

Mike Metcalf



Relevant Pages

  • Re: Review of The Extended Phenotype
    ... One way to restrict the definition of gene as nucleotide sequence is to ... What would be an example of a lower bound sequence preventing the ...
    (sci.bio.evolution)
  • Re: .999... = 1
    ... > lower bound for S. The completeness axiom is this: ... If S is a set of reals and S is ... rational can be approached by a sequence of rationals that approach ... I take to be a particular way of 'approaching arbitrarily close'), ...
    (sci.logic)
  • Re: Need hint for simple proof
    ... We just have to prove that such a lowest bound exists. ... any finite set of elements does not have a lower bound and in some ... assume total order, which you mention as a "Basic fact", then a proof goes ... By induction there exists a sequence of elements a_k and an integer n s.t., ...
    (sci.math)
  • Re: escape sequence in SSH Secure Shell 3.2.3
    ... richard wrote: ... I have no idea what the escape character or sequence is). ... Work a little harder on improving your low self ...
    (comp.security.ssh)
  • Re: groupadd, useradd, etc
    ... Richard E Miles wrote: ... I believe its a sequence of events issue when using the normal commands. ...
    (Fedora)