Template Function Pennylane::Util::array_has_elem
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
-
- Parameters
arr – Array to check.
elem – Element to find.
api/function_ConstantUtil_8hpp_1adfc8de2475611013921bf6ebaa38c3ff