using System; using NumSharp; using System.Linq; using System.Collections.Generic; public static partial class numpy { public static dynamic arange(object stop) { return numpy.arange(0,stop,1); } public static dynamic arange(object start, object stop, object step) { dynamic returnValue = null; switch (start) { case int startCast : { int stopCast = (int) stop; int stepCast = (int) step; returnValue = new NumSharp.Core.NDArray().arange(stopCast,startCast,stepCast); break; } case float startCast_ : { int startCast = (int) start; int stopCast = (int) stop; int stepCast = (int) step; returnValue = new NumSharp.Core.NDArray().arange(stopCast,startCast,stepCast); break; } } return returnValue; } }