comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: Ann: Mathpaqs, release Feb. 2011
Date: Mon, 21 Feb 2011 15:59:22 -0800
Date: 2011-02-21T15:59:22-08:00	[thread overview]
Message-ID: <ijuu8r$frj$1@speranza.aioe.org> (raw)
In-Reply-To: ac4a1eb6-454a-4814-b97f-b6a8294df9dc@b8g2000vbi.googlegroups.com

On 2/21/2011 10:43 AM, Gautier write-only wrote:
> Hello,
>
> There is a new release of Mathpaqs @ http://sf.net/projects/mathpaqs/
> .
>
> What's new:
>
> - *new* Discrete_random_simulation package (this is for simulating any
> discrete random distribution)
> - updated the Finite_distributed_random function (this is for
> simulating a random distribution for an enumerated type)
> - cleanup of ConjGrad (Conjugate gradient iterative methods for
> solving the matrix equation Ax=b)
>

Thanks Gautier,

I do not use Ada now, but I was looking at your ConjGrad solver,
and was just wondering, why new Matrix and Vectors are
defined in that package, since with Ada now, there exist
such types now?

For example, in  ConjGrad.ads it says

type Vector is array(Index range <>) of Real

type Any_matrix (<>) is private;
   -- NB: 2 syntaxes for instanciating that as unconstrained type :
   -- [Ada 95+] type Any_matrix (<>) is private;
   -- [Ada 83]  type Any_matrix is private;

But when I look at Ada 2005,

http://www.adaic.org/resources/add_content/standards/05rat/html/Rat-7-6.html

"Ada 2005 includes two new packages which are Ada.Numerics.Generic_Real_Arrays and Ada.Numerics.Generic_Complex_Arrays.

type Real_Vector is array (Integer range <>) of Real'Base;
type Real_Matrix is array (Integer range <>, Integer range <>) of Real'Base;
"

So, was just wondering the reasoning, to learn something, that's all.

I wrote a conjugate gradient solver myself for a HW, with preconditioning
in Matlab, and I saw your post, so wanted to see how it would 'look' in Ada.

thanks
--Nasser



  reply	other threads:[~2011-02-21 23:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 18:43 Ann: Mathpaqs, release Feb. 2011 Gautier write-only
2011-02-21 23:59 ` Nasser M. Abbasi [this message]
2011-02-22  2:34   ` Gautier write-only
2011-02-22  9:56     ` Nasser M. Abbasi
2011-02-22 10:27       ` Dmitry A. Kazakov
2011-02-22 10:40         ` Nasser M. Abbasi
2011-02-22 11:33           ` Dmitry A. Kazakov
2011-02-22 20:45             ` Nasser M. Abbasi
2011-02-22 21:03               ` Dmitry A. Kazakov
2011-02-23 14:38               ` Simon Wright
2011-02-24  9:51                 ` comp.lang.php
2011-02-25 21:09                   ` Simon Wright
2011-02-26  0:21                     ` Nasser M. Abbasi
2011-02-26  7:53                       ` Simon Wright
2011-02-26 18:38                       ` Gautier write-only
2011-02-26 20:59                         ` Simon Wright
2011-02-22 17:35           ` Simon Wright
2011-02-22 17:21       ` Gautier write-only
replies disabled

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