say i have an Nx4 array of points and I want to dot every [n, :] 1x4
slice with a 4x4 matrix.
Currently I am using apply_along_axis in the following manner:
def func(slice, mat):
return np.dot(mat, slice)
np.apply_along_axis(func, arr, 1, mat)
Is there a more efficient way of doing this that doesn't require a
python function for each slice?
Cheers,
Chris
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion