Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Pierre Guillot
>Can Sage do this determinant on its own? Sage tries to convert the matrix to a dense one before computing the determinant (the documentation for sparse matrices says so). And as a result, you never see the end of it, no. -- You received this message because you are subscribed to the Google

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Dima Pasechnik
On Tue, Feb 26, 2019 at 5:42 PM Pierre Guillot wrote: > > Hi again, > > Mostly, this does the job : > > def sparse_magma_matrix(mat): > s= "SparseMatrix(" + str(mat.nrows()) + ", " + str(mat.ncols()) + ", [" > entries= ", ".join([ "<"+str(i+1)+", " + str(j+1)+", "+str(mat[i,j])+">" > for

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Pierre Guillot
Hi again, Mostly, this does the job : def sparse_magma_matrix(mat): s= "SparseMatrix(" + str(mat.nrows()) + ", " + str(mat.ncols()) + ", [" entries= ", ".join([ "<"+str(i+1)+", " + str(j+1)+", "+str(mat[i,j])+">" for i,j in mat.dict() ]) return s + entries + "])" One should

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread John Cremona
On Tue, 26 Feb 2019 at 17:01, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > I don't think this has ever been implemented in Sage. You > have to figure out how to create a sparse matrix in magma > and write Sage code to produce it. You can get inspiration > from the current code of

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Vincent Delecroix
I don't think this has ever been implemented in Sage. You have to figure out how to create a sparse matrix in magma and write Sage code to produce it. You can get inspiration from the current code of _magma_init_ def _magma_init_(self): P = magma(self.parent()) v =

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Pierre Guillot
Thanks! I think to know where the issue is : M= random_matrix(ZZ, 10, sparse= True, density= 0.1) M._magma_init_(magma)

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Vincent Delecroix
Hi, Indeed that is a problem with all interfaces that are text based such as magma (to communicate with Magma Sage uses an emulation of a console). You can analyze what is sent to magma by running sage: m = matrix(2, [1,3,2,4]) sage: m._magma_init_(magma)

[sage-support] about the speed of tha Magma interface

2019-02-26 Thread Pierre Guillot
Hi ! I'm trying to compute the determinant of a sparse, square matrix with 50,000 columns and coefficients in GF(5)["x y z t u"]. I'm trying my luck with the magma interface, since we have a copy of magma running at my university. The first thing surprising me is that, on toy examples, magma

Re: [sage-support] Viewers in cocalc?

2019-02-26 Thread Vincent Delecroix
Your question is not about Sage but about a problem of Sage running in cocalc. On my computer with Sage installed I have no trouble with plot3d. SageMath is an aggregation of many softwares and whether each of them works correctly and interacts correctly with the others on the online platform

Re: [sage-support] Viewers in cocalc?

2019-02-26 Thread David Guichard
Well, when I go to https://github.com/sagemathinc/cocalc/wiki/Support for Sage questions I get directed to https://doc.cocalc.com/howto/sage-question.html and it directs me to "The sage-support mailing list ." which is where I am now. My

Re: [sage-support] "Questions about Sage"

2019-02-26 Thread William Stein
Thanks!! On Tue, Feb 26, 2019 at 6:06 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > Dear William, > > That is a good idea and the list seems to be complete. > > * You use both Sage and SageMath. It is a bit confusing. > > * I would change the order to reflect where you >should

Re: [sage-support] "Questions about Sage"

2019-02-26 Thread Vincent Delecroix
Dear William, That is a good idea and the list seems to be complete. * You use both Sage and SageMath. It is a bit confusing. * I would change the order to reflect where you should look at. i.e. put as very last the "report a bug". Perhaps also, Sage documentation would be better as "one

Re: [sage-support] Viewers in cocalc?

2019-02-26 Thread Vincent Delecroix
This list concerns the SageMath software. If you want support for cocalc, you should consider writing to their support. They are very reactive. Best Vincent Le 26/02/2019 à 00:26, david.guichard a écrit : When I try to specify a viewer in a plot3d I get an error if I try anything other than