Template Function Pennylane::Util::scaleVector(std::vector<std::complex<Data_t>, Alloc>&, std::complex<Data_t>)¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class Data_t, class Alloc>
void Pennylane::Util::scaleVector(std::vector<std::complex<Data_t>, Alloc> &data, std::complex<Data_t> scalar)¶ Multiplies every value in a dataset by a given complex scalar value.
- Template Parameters
Data_t – Precision of complex data type. Supports float and double data.
- Parameters
data – Data to be scaled.
scalar – Scalar value.
api/function_TestHelpers_8hpp_1a8175a7fb8c4cbb95db9fa6503de8e6b0
Download Python script
Download Notebook
View on GitHub