60 template<
typename dtype>
65 if (inStep > 0 && inStop < inStart)
70 if (inStep < 0 && inStop > inStart)
75 std::vector<dtype> values;
77 dtype theValue = inStart;
78 auto counter = dtype{ 1 };
82 while (theValue < inStop)
84 values.push_back(theValue);
85 theValue = inStart + inStep * counter++;
90 while (theValue > inStop)
92 values.push_back(theValue);
93 theValue = inStart + inStep * counter++;
119 template<
typename dtype>
127 return arange<dtype>(0, inStop, 1);
149 template<
typename dtype>
152 return arange<dtype>(inSlice.
start, inSlice.
stop, inSlice.
step);