binaryop aligns the data in the two larrys according to the join
method you specify. And then it applies the binary function that you
supply.
Can you give a simple example of what is not working?
Here's an example of use.
Make two larrys:
I[15] lar1 = la.rand(2,2)
I[16] lar2 = la.rand(2,2)
Here's what numpy gives:
I[17] np.dot(lar1.x, lar2.x)
O[17]
array([[ 0.6679216 , 0.423808 ],
[ 0.75695756, 0.67014283]])
la gives the same answer:
I[18] la.binaryop(np.dot, lar1, lar2)
O[18]
label_0
0
1
label_1
0
1
x
array([[ 0.6679216 , 0.423808 ],
[ 0.75695756, 0.67014283]])