comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: REQ: Extend slices for n dimensional arrays for Ada 202X
Date: Thu, 26 Jan 2017 06:03:01 -0800 (PST)
Date: 2017-01-26T06:03:01-08:00	[thread overview]
Message-ID: <52aad443-b080-48c2-8794-0badc99047c4@googlegroups.com> (raw)
In-Reply-To: <0fbd77dd-bcc2-462c-9ca3-be1ffb51e0c6@googlegroups.com>

On Thursday, 26 January 2017 14:01:22 UTC, Lucretia  wrote:

>   procedure Test is
>      type Matrix is array (1 .. 4, 1 .. 4) of Float;
>    
>      I : Matrix;
>   begin
>      I (1, 4) := 0.0;
>   end Test;

Hate when I'm in a rush, I forget things, as an example of the above, getting the 3D matrix from the 4D one would be as follows:

M3D := I (1, 1 .. 3, 3); --  Just the rotation and scale elements!

Luke.

  reply	other threads:[~2017-01-26 14:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-26 13:29 REQ: Extend slices for n dimensional arrays for Ada 202X Lucretia
2017-01-26 14:01 ` Lucretia
2017-01-26 14:03   ` Lucretia [this message]
2017-01-26 14:52   ` Dmitry A. Kazakov
2017-01-27  9:19     ` Alejandro R. Mosteo
2017-01-27 14:04     ` Lucretia
2017-01-26 18:29 ` Randy Brukardt
2017-01-27  1:54   ` Robert Eachus
2017-01-27  5:39     ` Robert Eachus
2017-01-27 14:06     ` Lucretia
2017-01-27 23:30     ` Randy Brukardt
2017-01-28  0:58       ` Robert Eachus
2017-01-27  9:34   ` Dmitry A. Kazakov
2017-01-27 13:53     ` G.B.
2017-01-27 14:20       ` Dmitry A. Kazakov
2017-01-27 23:37       ` Randy Brukardt
2017-01-28  9:08         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox