Template Function Pennylane::Util::areVecsDisjoint¶
Defined in File Util.hpp
Function Documentation¶
-
template<typename T = std::size_t>
bool Pennylane::Util::areVecsDisjoint(const std::vector<T> &v1, const std::vector<T> &v2)¶ Check if two vectors are disjoint.
- Template Parameters
T – Data type.
- Parameters
v1 – First vector.
v2 – Second vector.
- Returns
bool True if the vectors are disjoint, false otherwise.
api/function_Util_8hpp_1a3cf68e08adb3bec95a55c3aff6e52fdb
Download Python script
Download Notebook
View on GitHub