47 template<
typename dtype>
55 std::vector<dtype> values;
56 for (decltype(arr.
size()) i = 0; i < arr.
size(); ++i)
60 values.push_back(arr[i]);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
size_type size() const noexcept
Definition: NdArrayCore.hpp:4289
Definition: Coordinate.hpp:45
NdArray< dtype > extract(const NdArray< bool > &condition, const NdArray< dtype > &arr)
Definition: extract.hpp:48