linspace to Array as type float, while other functions as type double
changjian-github opened this issue · 0 comments
changjian-github commented
using NumSharp;
class Program
{
static void Main(string[] args)
{
double[] x = np.arange(-1, 1.1, 0.1).ToArray<double>();
float[] y = np.linspace(-1, 1, 21).ToArray<float>();
double[] z = np.random.rand(21).ToArray<double>();
Console.WriteLine("compile passed");
}
}
Changing float to double will result in an error.