rocsparseCPR.hpp
Go to the documentation of this file.
39class rocsparseCPR : public rocsparsePreconditioner<Scalar, block_size>, public CprCreation<Scalar, block_size>
50 std::vector<RocmMatrix<Scalar>> d_Amatrices, d_Rmatrices; // scalar matrices that represent the AMG hierarchy
52 std::vector<RocmVector<int>> d_PcolIndices; // prolongation does not need a full matrix, only store colIndices
Definition: BlockedMatrix.hpp:29 This class implements a Constrained Pressure Residual (CPR) preconditioner. Definition: CprCreation.hpp:39 This class implements a Constrained Pressure Residual (CPR) preconditioner. Definition: rocsparseCPR.hpp:40 bool analyze_matrix(BlockedMatrix< Scalar > *mat, BlockedMatrix< Scalar > *jacMat) override bool analyze_matrix(BlockedMatrix< Scalar > *mat) override bool initialize(std::shared_ptr< BlockedMatrix< Scalar > > matrix, std::shared_ptr< BlockedMatrix< Scalar > > jacMatrix, rocsparse_int *d_Arows, rocsparse_int *d_Acols) override bool create_preconditioner(BlockedMatrix< Scalar > *mat, BlockedMatrix< Scalar > *jacMat) override void apply(Scalar &y, Scalar &x) override void copy_system_to_gpu(Scalar *b) override rocsparseCPR(int verbosity) bool create_preconditioner(BlockedMatrix< Scalar > *mat) override void update_system_on_gpu(Scalar *b) override Definition: rocsparsePreconditioner.hpp:33 std::shared_ptr< BlockedMatrix< Scalar > > jacMat Definition: rocsparsePreconditioner.hpp:51 Definition: amgclSolverBackend.hpp:44 |