NumCpp  2.6.2
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 "NumCpp/NdArray.hpp"
31 
32 #include <utility>
33 
34 namespace nc
35 {
36  //============================================================================
37  // Method Description:
49  template<typename dtype>
50  std::pair<NdArray<uint32>, NdArray<uint32> > nonzero(const NdArray<dtype>& inArray)
51  {
52  return inArray.nonzero();
53  }
54 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero() const
Definition: NdArrayCore.hpp:4927
Definition: Coordinate.hpp:45
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero(const NdArray< dtype > &inArray)
Definition: nonzero.hpp:50