Template Function Pennylane::LightningKokkos::Util::axpy_Kokkos

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