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

np.convolve return null exception #505

Open
behroozbc opened this issue Dec 25, 2023 · 0 comments
Open

np.convolve return null exception #505

behroozbc opened this issue Dec 25, 2023 · 0 comments

Comments

@behroozbc
Copy link

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
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