Efficiency SAGE vs GAP

asked 2024-09-17 17:31:26 +0100

Xico_pezao gravatar image

I created a code in GAP and recently adapted it to run in Sage. Since I'm not familiar with coding in Sage, my code is somewhat of a "Frankenstein," with some parts using GAP functions and others using Sage functions. The GAP portion of the code handles linear algebra functions (vector spaces, linear maps, kernels of these maps and basis).

My question is: would the code be more efficient if it were implemented entirely in Sage? Or do Sage and GAP perform this basic computations in the same way, making the choice of language (or functions calling) irrelevant in this case?

edit retag flag offensive close merge delete

Comments

It'd be speculative to say anything without seeing an actual code.

Max Alekseyev gravatar imageMax Alekseyev ( 2024-09-17 18:35:22 +0100 )edit

Sage uses some linear algebra packages that are designed to be fast, but it's hard to know if they are faster than GAP for the particular things you're doing. It might be worth trying it in Sage, or at least trying a few sample calculations, along with timings.

John Palmieri gravatar imageJohn Palmieri ( 2024-09-17 18:37:45 +0100 )edit