36 rocsparse_handle handle;
37 rocsparse_direction dir = rocsparse_direction_row;
38 rocsparse_operation operation = rocsparse_operation_none;
39 rocsparse_mat_descr descr_L, descr_U;
50 bool useJacMatrix =
false;
51 std::shared_ptr<BlockedMatrix<Scalar>> jacMat{};
55 static std::unique_ptr<rocsparsePreconditioner<Scalar, block_size>> create(PreconditionerType type,
59 virtual void apply(Scalar& y, Scalar& x) = 0;
70 rocsparse_int *d_Arows,
71 rocsparse_int *d_Acols) = 0;
73 virtual void copy_system_to_gpu(Scalar *b)=0;
79 void set_matrix_analysis(rocsparse_mat_descr descr_L,
80 rocsparse_mat_descr descr_U);
82 void set_context(rocsparse_handle handle,
83 rocsparse_direction dir,
84 rocsparse_operation operation,