Skip to content

Unexpected output from numjs.convolve #139

@johnmhm

Description

@johnmhm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions