Sqrt of a matrix over Fp

64 views
Skip to first unread message

Habeeb Syed

unread,
Jun 8, 2023, 4:05:35 PM6/8/23
to sage-s...@googlegroups.com
Hi,
I need to compute square roots of matrices defined over finite fields.
It seems sage has no such function. I am getting this error.

AttributeError: 'sage.matrix.matrix_modn_dense_float.Matrix_modn_dense_float' object has no attribute 'sqrt'

Any help on this will be very useful to me.

Regards,
HS

William Stein

unread,
Jun 8, 2023, 4:36:04 PM6/8/23
to sage-s...@googlegroups.com
Hi,

You will probably have to implement a function to find a sqrt (if it exists) in terms of other higher level primitives.   


William

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAL0kVBJJ1EtEZWzf5tr%2BWwt0TYjLE1PiS31zR25cCOSHSzMp%2Bw%40mail.gmail.com.


--

Habeeb Syed

unread,
Jun 9, 2023, 4:59:38 AM6/9/23
to sage-s...@googlegroups.com
Thanks for the reply Stein. It was very helpful.


cyrille....@univ-orleans.fr

unread,
Jun 9, 2023, 7:33:35 AM6/9/23
to sage-support
Hello (I do not know which is your given name),

I think what you are searching is called Cholesky factorization. It is implemented in SageMath


De: "Habeeb Syed" <habeebb...@gmail.com>
À: "sage-support" <sage-s...@googlegroups.com>
Envoyé: Vendredi 9 Juin 2023 04:43:46
Objet: Re: [sage-support] Sqrt of a matrix over Fp

Dima Pasechnik

unread,
Jun 9, 2023, 7:42:51 AM6/9/23
to sage-s...@googlegroups.com
On Fri, Jun 9, 2023 at 8:33 AM cyrille....@univ-orleans.fr
<cyrille....@univ-orleans.fr> wrote:
>
> Hello (I do not know which is your given name),
>
> I think what you are searching is called Cholesky factorization. It is implemented in SageMath

this is not for finite fields, though.
Cholesky only make sense for ordered fields.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/1456572348.177053719.1686296004210.JavaMail.zimbra%40univ-orleans.fr.
Reply all
Reply to author
Forward
0 new messages