Matrix element wize multiplication & matrix column wize L2 normalization

Skip to first unread message

Haddad Mounir

May 4, 2018, 6:46:32 AM5/4/18
to mpmath
I am trying to use mpmath matrices, and I'm stuck with some implementation questions .

1) How can I multiply 2 matrices (element wize)? np.multiply doesn't work, it throws an error :" cannot copy sequence with size 10 to array axis with dimension 60"

2) Also, is there any straightforward way to normalize matrix columns (L2 norm in my case) ?

Thanks in advance for your replies. By the way, great job with this library.
Reply all
Reply to author
0 new messages