Unexpected behavior when using @
operator for right matrix multiplication of PaillierEncryptedNumber
and numpy.ndarray
#46
Labels
bug
Something isn't working
Issue
When performing right matrix multiplication of a
PaillierEncryptedNumber
instance with anumpy.ndarray
using@
operator,numpy.ndarray.__matmul__
is called instead of the expectedPaillierEncryptedNumber.__rmatmul__
.Reproduction
numpy.ndarray
and aPaillierEncryptedNumber
.ndarray @ paillierencryptednumer_instance
.Expected
The
PaillierEncryptedNumber.__rmatmul__
method should be called.Environment
The text was updated successfully, but these errors were encountered: