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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a21dfb63457ea960 X-Google-Attributes: gid103376,public From: ron@cs.tamu.edu (Ron J Theriault) Subject: Re: array of matrices Date: 1996/05/10 Message-ID: <4n0bu5$87h@news.tamu.edu>#1/1 X-Deja-AN: 154187536 sender: ron@slx0 (Ron J Theriault) references: <4m9aeb$d0e@news2.h1.usa.pipeline.com> <4mdjbq$df7@newsbf02.news.aol.com> organization: Texas A&M Computer Science Department, College Station, TX newsgroups: comp.lang.ada Date: 1996-05-10T00:00:00+00:00 List-Id: I'm surprised nobody has jumped in on this but... To represent a 2-D matrix, the best type to use is probably a discriminated record. Something like: type elements_2 is array(positive range <>, positive range <>) of integer; type matrix_2 (rows: positive; columns: positive) is record data : elements_2 (1..rows, 1..columns); end record; obj: matrix_2 (2,3) := (2,3, ((1,2), (3,6), (77,89))); ... Ron Theriault | CS Department | In a democracy, you only have to fool Texas A&M Univ. | most of the people, most of the time. ron@cs.tamu.edu |