48 template<
typename dtype,
typename Indices, type_traits::ndarray_
int_concept<Indices> = 0>
51 const auto numRows =
static_cast<int32>(
inArray.numRows());
58 if constexpr (type_traits::is_ndarray_signed_int_v<Indices>)
62 index = std::max(index + numRows, int32{ 0 });
65 if (index > numRows - 1)
70 return static_cast<int32>(index);
74 std::vector<NdArray<dtype>>
splits{};
77 const auto cSlice =
inArray.cSlice();
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
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
std::vector< NdArray< dtype > > vsplit(const NdArray< dtype > &inArray, const Indices &indices)
Definition vsplit.hpp:49