49 template<
typename dtype,
typename Indices, type_traits::ndarray_
int_concept<Indices> = 0>
52 const auto numCols =
static_cast<int32>(
inArray.numCols());
59 if constexpr (type_traits::is_ndarray_signed_int_v<Indices>)
63 index = std::max(index + numCols, int32{ 0 });
66 if (
static_cast<int32>(index) > numCols - 1)
71 return static_cast<int32>(index);
75 std::vector<NdArray<dtype>>
splits{};
78 const auto rSlice =
inArray.rSlice();
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:775
Definition Cartesian.hpp:40
std::vector< NdArray< dtype > > hsplit(const NdArray< dtype > &inArray, const Indices &indices)
Definition hsplit.hpp:50
NdArray< dtype > unique(const NdArray< dtype > &inArray)
Definition unique.hpp:53
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::int32_t int32
Definition Types.hpp:36