[sage-support] Re: Parallelization of contractions

2020-01-22 Thread Eric Gourgoulhon
Le mercredi 22 janvier 2020 07:43:52 UTC+1, Mattia Villani a écrit :
>
> How to use parallelization on contraction of tensor? Consider the case I 
> have two successive contraction like this:
>
> Tud=etuu['^{ab}']*eamup['^c_b']
> Tp=Tud['^{ab}']*eamup['^c_a']
>
> How con I parallelize it?
>

It suffices to type, before your code for contraction:


Parallelism().set(nproc=8)


Then the calculus of the contactions will be parallelized on 8 processes.
Of course, you can adapt the value of nproc to your computer.
An example is here 

.

Best wishes,

Eric.


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ce95b14e-f7bb-4db5-85b2-f50c7e7ad4d9%40googlegroups.com.


[sage-support] Re: Endomorphism Rings of Elliptic Curves

2020-01-22 Thread Eric Zhu
In the ordinary case, is it possible to get the regular function 
corresponding to some endomorphism?

On Wednesday, January 22, 2020 at 1:40:54 PM UTC-5, John Cremona wrote:
>
> I suspect the question might have been referring to elliptic curves over 
> finite fields. In the ordinary case you can ask for the Frobenius order and 
> know that the endomorphism ring is between that and the maximal order of 
> its field of fractions (an imaginary quadratic field) but as far as I know 
> Sage jas no implementation of finding the exact endomorphism ring such as 
> Kohel's algorithm.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0231708a-f73b-4ada-a5c0-edf80557b2c4%40googlegroups.com.


[sage-support] Re: Endomorphism Rings of Elliptic Curves

2020-01-22 Thread John Cremona
I suspect the question might have been referring to elliptic curves over finite 
fields. In the ordinary case you can ask for the Frobenius order and know that 
the endomorphism ring is between that and the maximal order of its field of 
fractions (an imaginary quadratic field) but as far as I know Sage jas no 
implementation of finding the exact endomorphism ring such as Kohel's algorithm.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e883d3f6-bbf4-422b-b964-b6f72abb746a%40googlegroups.com.