Skip to content

Commit

Permalink
Fix SpSV equation and add more details to SpSv and SpSM
Browse files Browse the repository at this point in the history
  • Loading branch information
malmasri7 committed May 14, 2024
1 parent 7ffc6fa commit 4a5c183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cuSPARSE/spsm_coo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Description

This sample demonstrates the usage of `cusparseSpSM` for performing *sparse triangular solver with multiple right-hand sides*, where the sparse matrix is represented in COO (Coordinate) storage format.
This sample demonstrates the usage of `cusparseSpSM` for performing *sparse triangular solver with multiple right-hand sides*, where the sparse matrix is represented in COO (Coordinate) storage format. The solver is configured with `CUSPARSE_FILL_MODE_LOWER` for the fill mode, indicating that only the lower triangular part of the matrix is used, and `CUSPARSE_DIAG_TYPE_NON_UNIT` for the diagonal type.

[cusparseSpSM Documentation](https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spsm)

Expand Down
2 changes: 1 addition & 1 deletion cuSPARSE/spsm_csr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Description

This sample demonstrates the usage of `cusparseSpSM` for performing *sparse triangular solver with multiple right-hand sides*, where the sparse matrix is represented in CSR (Compressed Sparse Row) storage format.
This sample demonstrates the usage of `cusparseSpSM` for performing *sparse triangular solver with multiple right-hand sides*, where the sparse matrix is represented in CSR (Compressed Sparse Row) storage format. The solver is configured with `CUSPARSE_FILL_MODE_LOWER` for the fill mode, indicating that only the lower triangular part of the matrix is used, and `CUSPARSE_DIAG_TYPE_NON_UNIT` for the diagonal type.

[cusparseSpSM Documentation](https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spsm)

Expand Down
4 changes: 2 additions & 2 deletions cuSPARSE/spsv_coo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Description

This sample demonstrates the usage of `cusparseSpSV` for performing *sparse triangular solver with single right-hand side*, where the sparse matrix is represented in COO (Coordinate) storage format.
This sample demonstrates the usage of `cusparseSpSV` for performing *sparse triangular solver with single right-hand side*, where the sparse matrix is represented in COO (Coordinate) storage format. The solver is configured with `CUSPARSE_FILL_MODE_LOWER` for the fill mode, indicating that only the lower triangular part of the matrix is used, and `CUSPARSE_DIAG_TYPE_NON_UNIT` for the diagonal type.

[cusparseSpSV Documentation](https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spsv)

<center>

`op(A) * Y = alpha * X`
`op(A) * X = alpha * Y`, where `X` is the output dense vector and `op(Y)` is the input dense vector (RHS).

![](spsv_coo.png)
</center>
Expand Down
6 changes: 2 additions & 4 deletions cuSPARSE/spsv_csr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## Description

This sample demonstrates the usage of `cusparseSpSV` for performing *sparse triangular solver with single right-hand side*, where the sparse matrix is represented in CSR (Compressed Sparse Row) storage format.

[cusparseSpSV Documentation](https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spsv)
This sample demonstrates the usage of `cusparseSpSV` for performing *sparse triangular solver with single right-hand side*, where the sparse matrix is represented in CSR (Compressed Sparse Row) storage format. The solver is configured with `CUSPARSE_FILL_MODE_LOWER` for the fill mode, indicating that only the lower triangular part of the matrix is used, and `CUSPARSE_DIAG_TYPE_NON_UNIT` for the diagonal type.

<center>

`op(A) * Y = alpha * X`
`op(A) * X = alpha * Y`, where `X` is the output dense vector and `op(Y)` is the input dense vector (RHS).

![](spsv_csr.png)
</center>
Expand Down

0 comments on commit 4a5c183

Please sign in to comment.