Questions tagged [numsharp]

6 questions
2
votes
0 answers

How to implement np.convolve in C#?

I am working on porting a python application, used for optical fiber analysis, to C#. As the original code relies heavily on Numpy, it was decided to use Num-sharp for the port but, later, it was found the np.convolve is not fully developed yet in…
guillermoe
  • 21
  • 3
1
vote
2 answers

CSharp: Failed to read LARGE .npy file. Exception is "NumSharp.dll Arithmetic operation resulted in an overflow."

I am trying to read a large .npy file in CSharp. In order to do that i am trying to use the NumSharp nuget. The file is 7GB jagged float array (float[][]). It has ~1 million vectors, each vector is a 960 dimension. Note: To be more specific the data…
Samer Aamar
  • 1,298
  • 1
  • 15
  • 23
1
vote
1 answer

C# NumSharp undefined behavior when using `object` parameter compared to explicit type parameter

I am working with NumSharp and a bit new to it. I would like to set multiple data values and there are two main functions of concern: NDArray.SetValue(object value, param int[] indices) NDArray.SetData(object value, param int[] indices) The first…
Everyone
  • 1,751
  • 13
  • 36
0
votes
2 answers

How to read npz file using NumSharp, when a npz file contain different data types

.npz file contains two npy files, faces.npy and neighbors.npy. faces.npy is float64, shape is 12*15 neighbors.npy is int64, shape is 12*3 First try: Type is double[,], but neighbors is null var npz =…
0
votes
0 answers

System.Drawing.pdb not included (serializing images with NumSharp)

good day! i have a situation while trying to process several images in a batch using c#, NumSharp and an onnx model See an extract code below: var modelPath = @"Resources/model_20221026.onnx"; var outputColumnNames = new[] {…
chacoff
  • 44
  • 3
-1
votes
1 answer

What is numpy.c_ counterpart for NumSharp?

I am translating tensorflow program of python to C#. And I didn't know how to deal with the method. I search, but it seemed poor document for NumSharp document enable(if it is my ignore, please point me out to spot). Could you help me to find out…