np.dot() only supported on contiguous arrays?

0 views
Skip to first unread message

kyle...@gmail.com

unread,
Feb 6, 2016, 6:25:44 PM2/6/16
to Numba Public Discussion - Public
Hello,  I am trying to compile a functions that uses np.dot and I keep getting the error: np.dot() only supported on contiguous arrays.  As an example, the following code generates the same error:


    from numba import jit, float64, int64
    from numpy import dot, empty
    @jit('void(float64[:, :], float64[:])', nopython=True)
    def f(A, B):
        C = empty(A.shape[0], float64)
        C= dot(A, B, C)

When gives me an:
TypingError: Failed at nopython (nopython frontend)
np.dot() only supported on contiguous arrays
Reply all
Reply to author
Forward
0 new messages