From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: How to access an array using two different indexing schemes Date: Tue, 28 Nov 2017 21:57:25 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <370d6fa0-568a-4a97-9189-7839c91cbe7c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 28 Nov 2017 21:57:25 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="05fa14a698e638cbaae570bd8b4e1ccd"; logging-data="22082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ErgMpOAeNTO6XEtzdBBclCo4xAn8OqqI=" User-Agent: NewsTap/5.2.6 (iPhone/iPod Touch) Cancel-Lock: sha1:ufPRGunzSxX6LV+x0L02rp5vZIg= sha1:2gBRoTWvMjRqmPxB/IGKbpVsNBM= Xref: reader02.eternal-september.org comp.lang.ada:49225 Date: 2017-11-28T21:57:25+00:00 List-Id: Jerry wrote: > Your problem would also be solved by a sub-matrix capability which is > apparently what you describe for PL/1. Of course Ada also lacks this > capability along with matrix compositions, both of which Matlab excels at. Except that these are different, higher level things. A matrix or vector in R or in Matlab or in APL or in ... is not at all the same thing as in Ada, physically. The former are opaque objects, e.g. a stretch of storage associated with and “typed” by a dimension object, giving meaning to runtime operations such as “column 4” or “convert to 2x3” Whereas an array in Ada is more like a bounded layout of typed data in storage. The Ada data structure can be used for implementing the higher level dimensioned objects mentioned.