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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,19924f2facf8443 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed-fusi2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Larger matrices Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <40ed91c2-3dab-4994-9a7b-4032058f0671@56g2000hsm.googlegroups.com> <4899b545$0$20713$9b4e6d93@newsspool4.arcor-online.net> <96f76821-fc2a-4ec1-83e7-b7b9a5be0520@r66g2000hsg.googlegroups.com> <9cabee20-877a-4fdc-80f8-7746879331da@8g2000hse.googlegroups.com> <6346e619-9f73-4fcd-b84e-7f222c1d6912@c65g2000hsa.googlegroups.com> Date: Thu, 7 Aug 2008 09:44:25 +0200 Message-ID: NNTP-Posting-Date: 07 Aug 2008 09:44:25 CEST NNTP-Posting-Host: 2c2ad820.newsspool3.arcor-online.net X-Trace: DXC=7mb5:1o?5eCFJ3]dH>I?oEMcF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]RE>49hODLB]JL[6LHn;2LCVN7enW;^6ZC`DIXm65S@:3>O91[]3QiinUE X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:1491 Date: 2008-08-07T09:44:25+02:00 List-Id: On Wed, 6 Aug 2008 11:40:09 -0700 (PDT), amado.alves@gmail.com wrote: >> IMO, for such huge matrices and vectors, it is better to use in-place >> operations, rather than a loose functional programming style. > > You mean a procedure with out parameter instead of function? in out. For example: procedure Multiply (Accumulator : in out Real_Matrix; Multiplicand : Real_Matrix); > Is there such utility? You mean in the standard library. Unfortunately no, which limits its usability. But you could implement them, as well as frequent mixed cases like: A := A * B + C >> And do you have dense 5000 x 5000 matrices? You are a hardworking man! > > It's an hypertext. An incidence matrix? I believe there exist special methods for representation and handling them. But sorry, my numerical methods is quite outdated. > So now I want to increase the stack size. To 200M. Ooch, that is a bad, bad idea. Stack is not for that. It should take no longer than 5 min to implement Multiply in order that it would use O(n) of pool instead of O(n**2) of stack... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de