46 template<
typename dtype>
60 for (
decltype(arr.
size()) i = 0; i < arr.
size(); ++i)
64 arr[i] = vals[valIdx++ % vals.
size()];
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
bool isempty() const noexcept
Definition: NdArrayCore.hpp:2932
Definition: Cartesian.hpp:40
void place(NdArray< dtype > &arr, const NdArray< bool > &mask, const NdArray< dtype > &vals)
Definition: place.hpp:47