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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: matrix manipulation Date: Sat, 27 Apr 2019 18:37:43 +0200 Organization: Adalog Message-ID: References: <4b46fe61-45af-4700-967c-503a4dafcee5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 27 Apr 2019 16:37:43 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f8f2cf20c5df5fbf726b7ef2b6b4791c"; logging-data="13855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ddxgZhuvI62XNyOflFQiP" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 Cancel-Lock: sha1:rzivQYVkNqYE1GVSD/Kx2ttvm4Y= In-Reply-To: Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:56199 Date: 2019-04-27T18:37:43+02:00 List-Id: Le 27/04/2019 à 17:21, hnptz@yahoo.de a écrit : > The mod solution sounds interesting. I then might switch to indices > starting with zero, which may be easier to handle in connection with > the mod function. It just means that you'll end up doing by hand the index calculation that the compiler would do for you with nested loops. Replacing multiple loops with a single loop buys you nothing as long as the total number of iterations is the same... -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr