Template Function Pennylane::LightningKokkos::Util::axpy_Kokkos¶
Defined in File LinearAlgebraKokkos.hpp
Function Documentation¶
-
template<class PrecisionT>
inline auto Pennylane::LightningKokkos::Util::axpy_Kokkos(Kokkos::complex<PrecisionT> alpha, Kokkos::View<Kokkos::complex<PrecisionT>*> x, Kokkos::View<Kokkos::complex<PrecisionT>*> y, size_t length)¶ Kokkos implementation of the \(y+=\alpha*x\) operation.
- Parameters
alpha – Scalar to scale x
x – Vector to add
y – Vector to be added
length – number of elements in x
api/function_LinearAlgebraKokkos_8hpp_1a7007961b135dc4105aca7a9569215912
Download Python script
Download Notebook
View on GitHub