Go to the source code of this file.
Functions | |
void | cs_matrix_set_type_hypre (cs_matrix_t *matrix, int use_device) |
Switch matrix type to HYPRE. More... | |
void cs_matrix_set_type_hypre | ( | cs_matrix_t * | matrix, |
int | use_device | ||
) |
Switch matrix type to HYPRE.
This releases previous coefficients if present, so should be called just after matrix creation, before assigning coefficients.
[in,out] | matrix | pointer to matrix structure |
[in] | use_device | 0 for host, 1 for device (GPU) |