Template Function Pennylane::LightningQubit::Util::first_elems_of¶
Defined in File ConstantTestHelpers.hpp
Function Documentation¶
-
template<typename T, typename U, std::size_t size>
constexpr std::array<T, size> Pennylane::LightningQubit::Util::first_elems_of(const std::array<std::pair<T, U>, size> &arr)¶ Extract first elements from the array of pairs.
- Template Parameters
T – Type of the first elements.
U – Type of the second elements.
size – Size of the array.
- Parameters
arr – Array to extract.
api/function_ConstantTestHelpers_8hpp_1aa18805a312b28fc00d27e245f5c54a9c
Download Python script
Download Notebook
View on GitHub