Template Function Pennylane::LightningGPU::MPI::scatterCSRMatrix¶
Defined in File CSRMatrix.hpp
Function Documentation¶
-
template<class Precision, class IndexT>
auto Pennylane::LightningGPU::MPI::scatterCSRMatrix(MPIManagerGPU &mpi_manager, std::vector<CSRMatrix<Precision, IndexT>> &matrix, std::size_t local_num_rows, std::size_t root) -> CSRMatrix<Precision, IndexT>¶ Scatter a CSR (Compressed Sparse Row) format matrix.
- Template Parameters
Precision – Floating-point precision type.
IndexT – Integer type used as indices of the sparse matrix.
- Parameters
mpi_manager – MPIManagerGPU object.
matrix – CSR (Compressed Sparse Row) format matrix vector.
local_num_rows – Number of rows of local CSR matrix.
root – Root rank of the scatter operation.
api/function_CSRMatrix_8hpp_1aeb9a24b3f8351188b637c0331a23e5fb
Download Python script
Download Notebook
View on GitHub