59 template<
typename dtype>
64 if (inStep > 0 && inStop < inStart)
69 if (inStep < 0 && inStop > inStart)
74 std::vector<dtype> values;
76 dtype theValue = inStart;
77 auto counter = dtype{ 1 };
81 while (theValue < inStop)
83 values.push_back(theValue);
84 theValue = inStart + inStep * counter++;
89 while (theValue > inStop)
91 values.push_back(theValue);
92 theValue = inStart + inStep * counter++;
118 template<
typename dtype>
126 return arange<dtype>(0, inStop, 1);
148 template<
typename dtype>
151 return arange<dtype>(inSlice.
start, inSlice.
stop, inSlice.
step);