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: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
Definition: Cartesian.hpp:40
NdArray< dtype > extract(const NdArray< bool > &condition, const NdArray< dtype > &arr)
Definition: extract.hpp:48