NumCpp  2.8.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
contains.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include "NumCpp/Core/Types.hpp"
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
44  template<typename dtype>
45  NdArray<bool> contains(const NdArray<dtype>& inArray, dtype inValue, Axis inAxis = Axis::NONE)
46  {
47  return inArray.contains(inValue, inAxis);
48  }
49 } // namespace nc
NdArray< bool > contains(value_type inValue, Axis inAxis=Axis::NONE) const
Definition: NdArrayCore.hpp:2332
Definition: Coordinate.hpp:45
Axis
Enum To describe an axis.
Definition: Types.hpp:47
NdArray< bool > contains(const NdArray< dtype > &inArray, dtype inValue, Axis inAxis=Axis::NONE)
Definition: contains.hpp:45