Re: [sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread slelievre
Could py-openmath or py-scscp help with that? - py-openmath https://github.com/OpenMath/py-openmath https://pypi.python.org/pypi/openmath - py-scscp https://github.com/OpenMath/py-scscp https://pypi.python.org/pypi/scscp - sage #19970: Provide an OpenMath interface

Re: [sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread Vincent Delecroix
Hi Simon, It would be nice if matrices had (lib)gap conversion (which fast implementation for specialized types). Something along sage: m = matrix(ZZ, 100) sage: X = my_gap_matrix() sage: m.set_from_gap(X) This has to be done for each matrix type in order to be efficient. One problem of the

[sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread Simon King
On 2017-09-16, Simon King wrote: > What to do? As sage_eval sucks, I should probably just try to > write the code into a (python) file and use sage.repl.load.load. No, it is as bad as sage_eval, i.e., makes my laptop use swap very quickly. -- You received this message

[sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread Simon King
On 2017-09-16, Simon King wrote: > I thought I was told about faster matrices by my former boss, David > Green, but by searching my mails I found that I was pointed to > ImmutableMatrix by Dima Pasechnik. > > Let's see if that's fast enough... It is an improvement, but

[sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread Simon King
On 2017-09-16, Simon King wrote: > An ideal solution for me would be either of the following: > - A way to make libgap use a matrix implementation that is as fast > as Sage matrices and is certainly a lot faster than treating > matrices as lists of lists. I was told

[sage-support] Re: Conversion of libgap data to sage data

2017-09-16 Thread Simon King
Hi Nils, On 2017-09-15, Nils Bruin wrote: > How fast is converting your list of matrices to a list of lists in gap? > Perhaps GapMatrix->GapList->SageList->SageMatrix is faster. If I understand correctly, what libgap uses *are* lists. But apparently gap treats lists of lists as