From: amado.alves@gmail.com
Subject: Re: Larger matrices
Date: Fri, 8 Aug 2008 02:59:56 -0700 (PDT)
Date: 2008-08-08T02:59:56-07:00 [thread overview]
Message-ID: <13426f2d-0060-47f0-8139-09506383f648@e53g2000hsa.googlegroups.com> (raw)
In-Reply-To: EPHmk.287943$yE1.248301@attbi_s21
> > And Ada got in the way: slicing restricted to one-dimensional arrays!
>
> Compared to other languages that have no slicing at all?
There are languages better than Ada at array indexing, including
slicing. If there aren't, there should be!
A bidimensional array like the standard Real_Matrix should be
compatible with a unidimensional array like Real_Vector.
One row (or one column) of a matrix is a vector.
In fact aggregate notation reflects this
Matrix := ( (a, b, c) ,
(d, e, f) ,
(g, h, i) );
Vector := (x, y, x);
but then the obvious are illegal:
Vector := Matrix (1); -- (a, b, c)
or
Band_Matrix := Matrix (1 .. 2); -- ( (a, b, c) ,
-- (d, e, f) )
A good language should even permit
Vertical_Band_Matrix := Matrix (Matrix'Range, 1 .. 2); -- ( (a, b) ,
(d, e) ,
-- (g, h) )
or
Block := Matrix (1 .. 2, 1 .. 2); -- ( (a, b) ,
-- (d, e) )
next prev parent reply other threads:[~2008-08-08 9:59 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 13:32 Larger matrices amado.alves
2008-08-06 14:29 ` Georg Bauhaus
2008-08-06 15:01 ` amado.alves
2008-08-06 17:29 ` amado.alves
2008-08-06 17:58 ` Dmitry A. Kazakov
2008-08-06 18:40 ` amado.alves
2008-08-07 7:44 ` Dmitry A. Kazakov
2008-08-06 18:44 ` Jeffrey R. Carter
2008-08-06 19:12 ` amado.alves
2008-08-06 23:33 ` amado.alves
2008-08-07 3:02 ` Randy Brukardt
2008-08-07 6:30 ` Georg Bauhaus
2008-08-07 8:01 ` amado.alves
2008-08-07 8:55 ` Egil Høvik
2008-08-07 19:13 ` Jeffrey R. Carter
2008-08-08 9:59 ` amado.alves [this message]
2008-08-08 10:38 ` Dmitry A. Kazakov
2008-08-08 11:29 ` Jean-Pierre Rosen
2008-08-08 13:15 ` Jeffrey Creem
2008-08-08 13:32 ` Dmitry A. Kazakov
2008-08-08 11:35 ` Georg Bauhaus
2008-08-08 12:11 ` Dmitry A. Kazakov
2008-08-08 14:11 ` Georg Bauhaus
2008-08-08 14:36 ` Dmitry A. Kazakov
2008-08-08 15:40 ` Georg Bauhaus
2008-08-08 16:37 ` Dmitry A. Kazakov
2008-08-08 17:37 ` Georg Bauhaus
2008-08-08 17:42 ` Georg Bauhaus
2008-08-08 19:51 ` Dmitry A. Kazakov
2008-08-09 7:44 ` Georg Bauhaus
2008-08-09 10:33 ` Dmitry A. Kazakov
2008-08-11 11:51 ` amado.alves
2008-08-11 13:51 ` Peter C. Chapin
2008-08-11 15:37 ` amado.alves
2008-08-13 14:03 ` John B. Matthews
2008-08-07 11:28 ` johnscpg
2008-08-07 12:35 ` Alex R. Mosteo
2008-08-07 13:40 ` amado.alves
2008-08-07 15:12 ` Alex R. Mosteo
2008-08-07 16:25 ` amado.alves
2008-08-07 18:21 ` amado.alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox