From: ron@cs.tamu.edu (Ron J Theriault)
Subject: Re: array of matrices
Date: 1996/05/10
Date: 1996-05-10T00:00:00+00:00 [thread overview]
Message-ID: <4n0bu5$87h@news.tamu.edu> (raw)
In-Reply-To: 4mdjbq$df7@newsbf02.news.aol.com
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 |
prev parent reply other threads:[~1996-05-10 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-02 0:00 array of matrices Boaz Chow
1996-05-03 0:00 ` John Herro
1996-05-04 0:00 ` Boaz Chow
1996-05-04 0:00 ` John Herro
1996-05-10 0:00 ` Ron J Theriault [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox