comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: how to copy complete column (or row) of matrix to another?
Date: Wed, 6 Sep 2017 09:31:36 +0200
Date: 2017-09-06T09:31:36+02:00	[thread overview]
Message-ID: <ooo88o$1lne$1@gioia.aioe.org> (raw)
In-Reply-To: oon9f2$ejs$1@franka.jacob-sparre.dk

On 06/09/2017 00:45, Randy Brukardt wrote:
> "Nasser M. Abbasi" <nma@12000.org> wrote in message
> news:oolo0a$1djr$1@gioia.aioe.org...
>> I have not programmed in Ada for long time. I forgot now if
>> Ada supports copying whole column or whole row of 2D matrix
>> in one operation or not?
> 
> No, that's not supported. It would be a distributed overhead to allow (that
> is, it would make all 2D operations slower), as the components of a slice
> would not necessarily be contiguous.

If the type of 1D slice of 2D slice could be a type different from but 
compatible to the type of 1D slice of the full array the operations 
could make use of different representations.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  parent reply	other threads:[~2017-09-06  7:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-05  8:41 how to copy complete column (or row) of matrix to another? Nasser M. Abbasi
2017-09-05 22:45 ` Randy Brukardt
2017-09-05 23:10   ` Nasser M. Abbasi
2017-09-06  5:34     ` faryumg
2018-03-21 13:58       ` Marius Amado-Alves
2018-03-30 21:25         ` gerdien.de.kruyf
2017-09-06  7:17     ` Simon Wright
2017-09-06  7:31   ` Dmitry A. Kazakov [this message]
2017-09-09 22:33 ` darek
2017-09-09 22:48 ` darek
2017-09-12 12:57   ` Lucretia
2017-10-02 23:08     ` Randy Brukardt
2017-09-12 21:22 ` Johan Söderlind Åström
2017-09-17 12:01 ` Robert Eachus
replies disabled

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