comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Larger matrices
Date: Thu, 7 Aug 2008 09:44:25 +0200
Date: 2008-08-07T09:44:25+02:00	[thread overview]
Message-ID: <i1a5bkej45w4.xlmjkbq8fx3e$.dlg@40tude.net> (raw)
In-Reply-To: 6346e619-9f73-4fcd-b84e-7f222c1d6912@c65g2000hsa.googlegroups.com

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



  reply	other threads:[~2008-08-07  7:44 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 [this message]
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
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