Template Function librapid::ordered#
Defined in File pseudoConstructors.hpp
Function Documentation#
-
template<typename Scalar = int64_t, typename Backend = backend::CPU, typename ShapeType = Shape, typename std::enable_if_t<typetraits::IsSizeType<ShapeType>::value, int> = 0>
Array<Scalar, Backend> librapid::ordered(const ShapeType &shape)# Create an Array filled, in order, with the numbers 0 to N-1.
Create a new Array object with a given shape, where each value is filled with a number from 0 to N-1, where N is the total number of elements in the array. The values are filled in the same order as the array is stored in memory.