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

Unexpected output from numjs.convolve #139

Open
johnmhm opened this issue Nov 19, 2022 · 0 comments
Open

Unexpected output from numjs.convolve #139

johnmhm opened this issue Nov 19, 2022 · 0 comments

Comments

@johnmhm
Copy link

johnmhm commented Nov 19, 2022

When using convolve on two arrays of numbers, I expect the output to be an array of numbers like in numpy:

>>> numpy.convolve((1,2,3),(4,5,6))
array([ 4, 13, 28, 27, 18])

But instead I get an array with only one number:

> numjs.convolve((1,2,3),(4,5,6))
NdArray {
  selection: View1darray { data: [ 18 ], shape: [ 1 ], stride: [ 1 ], offset: 0 }

What am I doing wrong or misunderstanding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant