NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nonzero.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <utility>
31
32#include "NumCpp/NdArray.hpp"
33
34namespace nc
35{
36 //============================================================================
37 // Method Description:
47 template<typename dtype>
48 std::pair<NdArray<uint32>, NdArray<uint32>> nonzero(const NdArray<dtype>& inArray)
49 {
50 return inArray.nonzero();
51 }
52} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
std::pair< NdArray< size_type >, NdArray< size_type > > nonzero() const
Definition: NdArrayCore.hpp:4967
Definition: Cartesian.hpp:40
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero(const NdArray< dtype > &inArray)
Definition: nonzero.hpp:48