NumCpp  1.0
A C++ implementation of the Python Numpy library
nonzero.hpp
Go to the documentation of this file.
1 #pragma once
30 
31 #include "NumCpp/NdArray.hpp"
32 
33 #include <utility>
34 
35 namespace nc
36 {
37  //============================================================================
38  // Method Description:
50  template<typename dtype>
51  std::pair<NdArray<uint32>, NdArray<uint32> > nonzero(const NdArray<dtype>& inArray)
52  {
53  return inArray.nonzero();
54  }
55 }
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:75
NdArray.hpp
nc
Definition: Coordinate.hpp:45
nc::NdArray::nonzero
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero() const
Definition: NdArrayCore.hpp:4677
nc::nonzero
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero(const NdArray< dtype > &inArray)
Definition: nonzero.hpp:51