NumCpp
2.4.0
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 "
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
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition:
NdArrayCore.hpp:71
NdArray.hpp
nc
Definition:
Coordinate.hpp:44
nc::NdArray::nonzero
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero() const
Definition:
NdArrayCore.hpp:4738
nc::nonzero
std::pair< NdArray< uint32 >, NdArray< uint32 > > nonzero(const NdArray< dtype > &inArray)
Definition:
nonzero.hpp:50
include
NumCpp
Functions
nonzero.hpp
Generated by
1.8.17