comp.lang.ada
 help / color / mirror / Atom feed
* Mathpaqs release 13-Mar-2018
@ 2018-03-13 16:39 gautier_niouzes
  2018-03-14 11:16 ` Alejandro R. Mosteo
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: gautier_niouzes @ 2018-03-13 16:39 UTC (permalink / raw)


Mathpaqs is a collection of mathematical packages in the Ada programming language.

What's new:
  Added special functions Beta and Phi in the numerics part
    (Beta_function, Test_Beta, Phi_function)
  Added the Beta distribution in the random distribution part
    (Generic_Random_Functions)

  More information here: http://mathpaqs.sf.net/

Enjoy!
Gautier

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-13 16:39 Mathpaqs release 13-Mar-2018 gautier_niouzes
@ 2018-03-14 11:16 ` Alejandro R. Mosteo
  2018-03-14 11:17   ` Alejandro R. Mosteo
  2018-03-14 14:54 ` Vincent D.
  2018-03-16  8:34 ` Vincent D.
  2 siblings, 1 reply; 10+ messages in thread
From: Alejandro R. Mosteo @ 2018-03-14 11:16 UTC (permalink / raw)


On 13/03/18 17:39, gautier_niouzes@hotmail.com wrote:
> Mathpaqs is a collection of mathematical packages in the Ada programming language.
> 
> What's new:
>    Added special functions Beta and Phi in the numerics part
>      (Beta_function, Test_Beta, Phi_function)
>    Added the Beta distribution in the random distribution part
>      (Generic_Random_Functions)
> 
>    More information here: http://mathpaqs.sf.net/
> 
> Enjoy!
> Gautier

Is it chance that this announce is made on Pi day? ;-)

Thanks,
Álex.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-14 11:16 ` Alejandro R. Mosteo
@ 2018-03-14 11:17   ` Alejandro R. Mosteo
  0 siblings, 0 replies; 10+ messages in thread
From: Alejandro R. Mosteo @ 2018-03-14 11:17 UTC (permalink / raw)


On 14/03/18 12:16, Alejandro R. Mosteo wrote:
> On 13/03/18 17:39, gautier_niouzes@hotmail.com wrote:
>> Mathpaqs is a collection of mathematical packages in the Ada 
>> programming language.
>>
>> What's new:
>>    Added special functions Beta and Phi in the numerics part
>>      (Beta_function, Test_Beta, Phi_function)
>>    Added the Beta distribution in the random distribution part
>>      (Generic_Random_Functions)
>>
>>    More information here: http://mathpaqs.sf.net/
>>
>> Enjoy!
>> Gautier
> 
> Is it chance that this announce is made on Pi day? ;-)

Aw, drats, I *read* it on Pi day.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-13 16:39 Mathpaqs release 13-Mar-2018 gautier_niouzes
  2018-03-14 11:16 ` Alejandro R. Mosteo
@ 2018-03-14 14:54 ` Vincent D.
  2018-03-16 17:59   ` gautier_niouzes
  2018-03-16  8:34 ` Vincent D.
  2 siblings, 1 reply; 10+ messages in thread
From: Vincent D. @ 2018-03-14 14:54 UTC (permalink / raw)


Le mardi 13 mars 2018 17:39:49 UTC+1, gautier...@hotmail.com a écrit :
> Mathpaqs is a collection of mathematical packages in the Ada programming language.
> Enjoy!
> Gautier

Thank you very much Gauthier.

Just a few questions :
- why not use the standard Generic Real Arrays ?
- Are the G_Matrices stored in Fortran convention, i.e. Column Major Order ?
- Are they compatible with Blas & Lapack ?
- Are the SparseB matrices compatible with Matlab matrices (i.e. CSC matrices)
- Are both format interoperable ?
- Are they interchangeable, i.e is there a common class type to manipulate them?
Kind regards,

Vincent


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-13 16:39 Mathpaqs release 13-Mar-2018 gautier_niouzes
  2018-03-14 11:16 ` Alejandro R. Mosteo
  2018-03-14 14:54 ` Vincent D.
@ 2018-03-16  8:34 ` Vincent D.
  2018-03-16 17:54   ` Simon Wright
  2018-03-16 18:05   ` gautier_niouzes
  2 siblings, 2 replies; 10+ messages in thread
From: Vincent D. @ 2018-03-16  8:34 UTC (permalink / raw)


Le mardi 13 mars 2018 17:39:49 UTC+1, gautier...@hotmail.com a écrit :
> Mathpaqs is a collection of mathematical packages in the Ada programming language.
>   More information here: http://mathpaqs.sf.net/

Hi Gautier,

I downloaded the file : mathpaqs_2018_03_13.zip and tried to unzip it but the 'LZMA' method was not supported by my unzipping tools.

Therefore I downloaded the file : zipada53.zip and tried to build unzipada but it failed on OS X with the following error message : 
 > ld: library not found for -lwin32ada
 > collect2: error: ld returned 1 exit status
 > gprbuild: link of unzipada.adb failed

How can I build unzipada under OS X ?

Regards,

Vincent

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-16  8:34 ` Vincent D.
@ 2018-03-16 17:54   ` Simon Wright
  2018-03-19 20:58     ` vincent.diemunsch
  2018-03-16 18:05   ` gautier_niouzes
  1 sibling, 1 reply; 10+ messages in thread
From: Simon Wright @ 2018-03-16 17:54 UTC (permalink / raw)


"Vincent D." <vincent.diemunsch@gmail.com> writes:

> Therefore I downloaded the file : zipada53.zip and tried to build
> unzipada but it failed on OS X with the following error message :
>  > ld: library not found for -lwin32ada
>  > collect2: error: ld returned 1 exit status
>  > gprbuild: link of unzipada.adb failed
>
> How can I build unzipada under OS X ?

zipada.txt says

  UnZipAda uses a procedure from an extension to Ada.Directories for
  setting time stamps of extracted files.
  
  This extension in its turn uses a system-specific call.
  
  You can replace the call to Set_Modification_Time by null and remove
  the line with Ada_Directories_Extensions to get a totally portable
  tool using only Zip-Ada and Ada standard libraries.

Then built OK for me with

  $ gprbuild -p -XBuild_Mode=Debug unzipada.adb

(the default is Fast, and that uses the linker flag -gc-sections, which
macOS's ld doesn't understand, it's a GNU ld facility.)

Unfortunately the resulting tool only printed out its help message ...


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-14 14:54 ` Vincent D.
@ 2018-03-16 17:59   ` gautier_niouzes
  0 siblings, 0 replies; 10+ messages in thread
From: gautier_niouzes @ 2018-03-16 17:59 UTC (permalink / raw)


Hi Vincent,

> Just a few questions :
> - why not use the standard Generic Real Arrays ?
Good point! I'll update the web site with a remark from g_matrices.ads: "NB: For Ada 2005+ and real numbers implemented as floating-point numbers, it is better to use Ada.Numerics.Generic_Real_Arrays instead.". An usage of G_Matrices can be for complex, rational, "bignum"-rationals, etc. ...

> - Are the G_Matrices stored in Fortran convention, i.e. Column Major Order ?
By default not, but you can add a pragma Convention.

> - Are they compatible with Blas & Lapack ?
Some stuff in the lin_alg area is, but frankly it is a bit rusty (in my head)...

> - Are the SparseB matrices compatible with Matlab matrices (i.e. CSC matrices)
SparseB is just a helper for Sparse package (I did it in Ada 83 around end 1990's, it would be a private child package now (tbd)...).
There are two bodies for sparseb: one standalone, one using Blas (sparseb.blas.adb)

> - Are both format interoperable ?
> - Are they interchangeable, i.e is there a common class type to manipulate them?

I've used for research purposes, interchangeably:
- plain matrices,
- band matrices (a matrix with zeroes outside diagonals and the cells just above and below) and
- sparse matrices.
I did it through generics.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-16  8:34 ` Vincent D.
  2018-03-16 17:54   ` Simon Wright
@ 2018-03-16 18:05   ` gautier_niouzes
  2018-03-19 20:55     ` Vincent D.
  1 sibling, 1 reply; 10+ messages in thread
From: gautier_niouzes @ 2018-03-16 18:05 UTC (permalink / raw)


Le vendredi 16 mars 2018 09:34:11 UTC+1, Vincent D. a écrit :
> Le mardi 13 mars 2018 17:39:49 UTC+1, gautier...@hotmail.com a écrit :
> > Mathpaqs is a collection of mathematical packages in the Ada programming language.
> >   More information here: http://mathpaqs.sf.net/
> 
> Hi Gautier,
> 
> I downloaded the file : mathpaqs_2018_03_13.zip and tried to unzip it but the 'LZMA' method was not supported by my unzipping tools.
> 
> Therefore I downloaded the file : zipada53.zip and tried to build unzipada but it failed on OS X with the following error message : 
>  > ld: library not found for -lwin32ada
>  > collect2: error: ld returned 1 exit status
>  > gprbuild: link of unzipada.adb failed
> 
> How can I build unzipada under OS X ?

Quick answer:
in unzipada.adb:
- comment out "with Ada_Directories_Extensions;" (line 18)
- comment out "Ada_Directories_Extensions.Set_Modification_Time(Name, To);" (line 34) and put "null;" instead.

I'll do it as default (hoping Ada_Directories_Extensions.Set_Modification_Time becomes Ada_Directories.Set_Modification_Time one day)...

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-16 18:05   ` gautier_niouzes
@ 2018-03-19 20:55     ` Vincent D.
  0 siblings, 0 replies; 10+ messages in thread
From: Vincent D. @ 2018-03-19 20:55 UTC (permalink / raw)


Le vendredi 16 mars 2018 19:05:59 UTC+1, gautier...@hotmail.com a écrit :

> Quick answer:
> in unzipada.adb:
> - comment out "with Ada_Directories_Extensions;" (line 18)
> - comment out "Ada_Directories_Extensions.Set_Modification_Time(Name, To);" (line 34) and put "null;" instead.

It worked perfect ! Thank you Gauthier.
Kind regards,

Vincent


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Mathpaqs release 13-Mar-2018
  2018-03-16 17:54   ` Simon Wright
@ 2018-03-19 20:58     ` vincent.diemunsch
  0 siblings, 0 replies; 10+ messages in thread
From: vincent.diemunsch @ 2018-03-19 20:58 UTC (permalink / raw)


Le vendredi 16 mars 2018 18:54:40 UTC+1, Simon Wright a écrit :
> 
> zipada.txt says
> 
Thank you Simon, I should have read it before asking :-).
Kind regards,

Vincent

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-19 20:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-13 16:39 Mathpaqs release 13-Mar-2018 gautier_niouzes
2018-03-14 11:16 ` Alejandro R. Mosteo
2018-03-14 11:17   ` Alejandro R. Mosteo
2018-03-14 14:54 ` Vincent D.
2018-03-16 17:59   ` gautier_niouzes
2018-03-16  8:34 ` Vincent D.
2018-03-16 17:54   ` Simon Wright
2018-03-19 20:58     ` vincent.diemunsch
2018-03-16 18:05   ` gautier_niouzes
2018-03-19 20:55     ` Vincent D.

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