Template Function Pennylane::LightningQubit::Util::second_elems_of¶
Defined in File ConstantTestHelpers.hpp
Function Documentation¶
-
template<typename T, typename U, std::size_t size>
constexpr std::array<U, size> Pennylane::LightningQubit::Util::second_elems_of(const std::array<std::pair<T, U>, size> &arr)¶ Extract second 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_1a33bcdaca7901c14b05d3ebaeae5e30e2
Download Python script
Download Notebook
View on GitHub