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
[BUG] Unable to add numpy arrays #2617
Labels
Comments
hylkedonker
added
bug
Something isn't working
mojo-repo
Tag all issues with this label
labels
May 11, 2024
I am having similar issues with # Reshape xx and yy
xx_reshaped = xx.reshape(-1, 1)
yy_reshaped = yy.reshape(-1, 1)
# Concatenate xx and yy
#var reshaped_array = np.concatenate((xx_reshaped, yy_reshaped), axis=1)
var reshaped_array = np.hstack((xx_reshaped,yy_reshaped)) Summary of error Expression [34] wrapper:73:26: call expansion failed - no concrete specializations
__mojo_repl_expr_body__()
^
Expression [34] wrapper:36:7: function instantiation failed
def __mojo_repl_expr_body__() -> None:
^
Expression [34]:28:44: call expansion failed - no concrete specializations
var reshaped_array = np.hstack((xx_reshaped,yy_reshaped))
^
expression failed to parse (no further compiler diagnostics) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug description
The following code snippet, that adds two matrices, doesn't run:
Running the file gives the error message:
Observe that vectors instead of matrices do work:
Steps to reproduce
To reproduce, save the snippet as
myfile.mojo
and runmojo myfile.mojo
.System information
The text was updated successfully, but these errors were encountered: