Skip to content

np.convolve return null exception  #505

@behroozbc

Description

@behroozbc

I am new to this repository, and I want to test a convolve funcation but I got System.NullReferenceException: Object reference not set to an instance of an object.. I am using the NumSharp version: 0.30.0 and .net sdk version: 8.0.100 my code is simple, which I wrote in a console app.

using NumSharp;
var f = np.array(new int[] { 3, 3, 2, 1, 2 });
var g = np.array(new int[] { -1, 2, 1 });
var outp=np.convolve(f,g, "valid");
Console.WriteLine(outp.ToString());

the full error message

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Program.<Main>$(String[] args) in E:\repos\ConsoleApp7\ConsoleApp7\Program.cs:line 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions