Open Sullivanecidi opened 4 years ago
x_data.ToArray<double>()
x_data.ToArray<double>()
Do you mean y = y_data.ToArray(of double)() it doesn't work at all......
VB.Net don't support Of unmanaged 目前看到的情况是,VB.Net 不支持 C# 7.3 新的 unmanaged 泛型约束。 如果想要使用,可能需要变通一下了。
x_data.ToArray<double>()
Do you mean y = y_data.ToArray(of double)() it doesn't work at all......
Dim x_data, y_data As NDArray x_data = np.linspace(0, 100, 500) y_data = x_data * 2 + np.random.randn(500)
Debugging results: Please confirm if it can solve your problem。
VB.Net don't support Of unmanaged 目前看到的情况是,VB.Net 不支持 C# 7.3 新的 unmanaged 泛型约束。 如果想要使用,可能需要变通一下了。
那就可能是按照楼上这位了,一个一个取出来。谢谢你了~
Thanks very much! this is the alternative way, since VB.net don't support the unmanaged constraint.
VB.Net don't support Of unmanaged 目前看到的情况是,VB.Net 不支持 C# 7.3 新的 unmanaged 泛型约束。 如果想要使用,可能需要变通一下了。
我刚试了下c#,是可以用toArray
是的,C#肯定没问题啊。 还有个稍微好一点的解决方案。 就是用C#弄一个缝合项目,然后VB项目引用。
It is really a big surprise for me to find the Numsharp. Here is little question with using the NumSharp: How to convert the NDArray data to list ? since in VB.net, list is the frequently used. For example: dim x_data, y_data as NDArray dim y() as double x_data = np.linspace(0,100,500) y_data = x_data * 2 + np.random.randn(500)
how to convert y_data to y() ?
Thanks!