NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
contains.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include "NumCpp/Core/Types.hpp"
31#include "NumCpp/NdArray.hpp"
32
33namespace 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:2445
Definition: Cartesian.hpp:40
Axis
Enum To describe an axis.
Definition: Enums.hpp:36
NdArray< bool > contains(const NdArray< dtype > &inArray, dtype inValue, Axis inAxis=Axis::NONE)
Definition: contains.hpp:45