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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,32d9aa9d79729b31 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.162 with SMTP id wj2mr2435861pbc.2.1340562825884; Sun, 24 Jun 2012 11:33:45 -0700 (PDT) Path: l9ni15344pbj.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Any easy/build-in construct to extract submatrices from larger matrix? Date: Sun, 24 Jun 2012 20:33:44 +0200 Organization: cbb software GmbH Message-ID: <1u11icx9egzzg$.wox74efywchd.dlg@40tude.net> References: <1xzo3825h9yt7$.45flobqwlel6.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: q1gJPV1SC/KP9ydRbYoWiw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-06-24T20:33:44+02:00 List-Id: On Sun, 24 Jun 2012 12:14:11 -0500, Nasser M. Abbasi wrote: > I think Ada should add more > support for more build-in type functions for matrix/vector operations. > > At least, 2D slicing of arrays should be possible? Yes, but the reason why nD slices are is not included is likely for efficiency reasons. Anyway, slices would not help. Excluding rows and columns is another sort of operations. I don't think the language should provide slices. It should provide means to define operations using slice syntax instead. > If not, that > mask/pack functionality as in Fortran, should be present in Ada > as part of the library. No, that is low-level mess. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de