Template Function Pennylane::Util::linspace¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class T>
auto Pennylane::Util::linspace(T start, T end, std::size_t num_points) -> std::vector<T>¶ Define linearly spaced data [start, end].
- Template Parameters
T – Data type.
- Parameters
start – Start position.
end – End position.
num_points – Number of data-points in range.
- Returns
std::vector<T>
api/function_TestHelpers_8hpp_1af6a3e2713c8b1557bb92133b750f47a9
Download Python script
Download Notebook
View on GitHub