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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail From: amado.alves@gmail.com Newsgroups: comp.lang.ada Subject: Re: Larger matrices Date: Wed, 6 Aug 2008 11:40:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6346e619-9f73-4fcd-b84e-7f222c1d6912@c65g2000hsa.googlegroups.com> 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> NNTP-Posting-Host: 89.214.52.235 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1218048010 26317 127.0.0.1 (6 Aug 2008 18:40:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 6 Aug 2008 18:40:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c65g2000hsa.googlegroups.com; posting-host=89.214.52.235; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1469 Date: 2008-08-06T11:40:09-07:00 List-Id: > 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? Is there such utility? > And do you have dense 5000 x 5000 matrices? You are a hardworking man! It's an hypertext. It starts out sparse, but then gets less sparse with the usage because it is an adaptive hypertext system and I am using spreading activation to create new links. Probably it will never be very dense, but new links may appear anywhere in the matrix. And it's only a prototype for a thesis, and the focus is on the theoretical model not the implementation, so I was prepared to spend a few megas of my giga ram to use the standard library if only the compiler let me do it... I found switches -fstack-usage and -fcallgraph-ifo (gcc) in the GNAT manual but Gnatmake does not seem to accept this. I also found that GNAT is calling a BLAS or LAPACK function called "gemv" to implement matrix-vector "*" and so my diagnostics of overflow caused by (value?) passing on the stack is probably right. So now I want to increase the stack size. To 200M. The right Gnatmake switch, please...