Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot unify array(int64, 2d, F) and array(float64, 2d, C) for 'X.2', np.linalg.inv() even with np.ascontiguousarray() .astype(np.float64) everywhere #6218

Closed
3 tasks done
segatrade opened this issue Sep 5, 2020 · 2 comments
Labels
more info needed This issue needs more information

Comments

@segatrade
Copy link

Check off these boxes:

Details of the bug here, including, if applicable, what you expected to happen

Getting this error even with np.ascontiguousarray() .astype(np.float64) everywhere:

Cannot unify array(int64, 2d, F) and array(float64, 2d, C) for 'X.2',

@njit
def numba_get(): 
  X=np.ascontiguousarray(X.astype(np.float64)) 
  xx = np.ascontiguousarray(np.dot(X.T, X).astype(np.float64))
  xx_inv = np.ascontiguousarray(np.linalg.inv(xx).astype(np.float64))
         ^
xx=[[949.74599572 137.822009  ]
 [137.822009    20.        ]]
@stuartarchibald
Copy link
Contributor

Thanks for the report. This doesn't appear to be a minimal working reproducer, please could you format your report in such a way that it can be copy-pasted and then executed, so as to demonstrate the problem you are having, many thanks!

@stuartarchibald stuartarchibald added the more info needed This issue needs more information label Sep 7, 2020
@stuartarchibald
Copy link
Contributor

Closing this issue due to lack of information. If more information becomes available please add it and reopen the issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed This issue needs more information
Projects
None yet
Development

No branches or pull requests

2 participants