Template Function Pennylane::Util::array_has_elem¶
Defined in File ConstantUtil.hpp
Function Documentation¶
-
template<typename U, std::size_t size>
constexpr auto Pennylane::Util::array_has_elem(const std::array<U, size> &arr, const U &elem) -> bool¶ Check an array has an element.
- Template Parameters:
U – Type of array elements.
size – Size of array.
- Parameters:
arr – Array to check.
elem – Element to find.
api/function_ConstantUtil_8hpp_1adfc8de2475611013921bf6ebaa38c3ff
Download Python script
Download Notebook
View on GitHub