NumCpp  2.10.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nonzero.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include <utility>
31 
32 #include "NumCpp/NdArray.hpp"
33 
34 namespace 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:138
std::pair< NdArray< size_type >, NdArray< size_type > > nonzero() const
Definition: NdArrayCore.hpp:4860
Definition: Coordinate.hpp:45
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero(const NdArray< dtype > &inArray)
Definition: nonzero.hpp:48