Template Function Pennylane::LightningKokkos::Util::SparseMV_Kokkos¶
Defined in File LinearAlgebraKokkos.hpp
Function Documentation¶
-
template<class PrecisionT, class ComplexT>
void Pennylane::LightningKokkos::Util::SparseMV_Kokkos(Kokkos::View<ComplexT*> x, Kokkos::View<ComplexT*> y, const std::size_t *row_map, const std::size_t row_map_size, const std::size_t *entries_ptr, const ComplexT *values_ptr, const std::size_t numNNZ)¶ Sparse matrix vector multiply :math: y=A*x.
- Parameters
x – Input vector
y – Result vector
row_map_ptr – row_map array pointer. The j element encodes the number of non-zeros above row j.
row_map_size – row_map array size.
entries_ptr – pointer to an array with column indices of the non-zero elements.
values_ptr – pointer to an array with the non-zero elements.
numNNZ – number of non-zero elements.
api/function_LinearAlgebraKokkos_8hpp_1ae0a078512112357326b4e747c44662b1
Download Python script
Download Notebook
View on GitHub