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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9cc8b90e75b064d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-23 11:05:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Slice from a matrix? Date: 23 May 2003 13:56:50 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1053713557 11074 128.183.235.92 (23 May 2003 18:12:37 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 23 May 2003 18:12:37 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37706 Date: 2003-05-23T18:12:37+00:00 List-Id: Harald Schmidt writes: > I got a generic matrix / vector package like this: > > > > Then I have three Put procedures, one for matrix, one for row_vector, and > one for col_vector. > > My question is how to get a slice from a matrix which I can convert to a > col_vector which does the printing? If you change your matrix to be an array of arrays, you can use the Generic_Array_Text_IO package from Auto_Text_IO at http://www.toadmail.com/~ada_wizard/auto_text_io.html. It supports both Put and Get, with optional named association. -- -- Stephe