Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 5c5e5d3

Browse files
authored
Merge pull request #430 from allisonvacanti/spmv_docs
Remove references to alpha/beta from DeviceSpmv docs.
2 parents a5b4991 + bb6b64d commit 5c5e5d3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cub/device/device_spmv.cuh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ CUB_NAMESPACE_BEGIN
5151
* \par Overview
5252
* The [<em>SpMV computation</em>](http://en.wikipedia.org/wiki/Sparse_matrix-vector_multiplication)
5353
* performs the matrix-vector operation
54-
* <em>y</em> = <em>alpha</em>*<b>A</b>*<em>x</em> + <em>beta</em>*<em>y</em>,
54+
* <em>y</em> = <b>A</b>*<em>x</em> + <em>y</em>,
5555
* where:
5656
* - <b>A</b> is an <em>m</em>x<em>n</em> sparse matrix whose non-zero structure is specified in
5757
* [<em>compressed-storage-row (CSR) format</em>](http://en.wikipedia.org/wiki/Sparse_matrix#Compressed_row_Storage_.28CRS_or_CSR.29)
5858
* (i.e., three arrays: <em>values</em>, <em>row_offsets</em>, and <em>column_indices</em>)
5959
* - <em>x</em> and <em>y</em> are dense vectors
60-
* - <em>alpha</em> and <em>beta</em> are scalar multiplicands
6160
*
6261
* \par Usage Considerations
6362
* \cdp_class{DeviceSpmv}
@@ -106,15 +105,15 @@ struct DeviceSpmv
106105
* size_t temp_storage_bytes = 0;
107106
* cub::DeviceSpmv::CsrMV(d_temp_storage, temp_storage_bytes, d_values,
108107
* d_row_offsets, d_column_indices, d_vector_x, d_vector_y,
109-
* num_rows, num_cols, num_nonzeros, alpha, beta);
108+
* num_rows, num_cols, num_nonzeros);
110109
*
111110
* // Allocate temporary storage
112111
* cudaMalloc(&d_temp_storage, temp_storage_bytes);
113112
*
114113
* // Run SpMV
115114
* cub::DeviceSpmv::CsrMV(d_temp_storage, temp_storage_bytes, d_values,
116115
* d_row_offsets, d_column_indices, d_vector_x, d_vector_y,
117-
* num_rows, num_cols, num_nonzeros, alpha, beta);
116+
* num_rows, num_cols, num_nonzeros);
118117
*
119118
* // d_vector_y <-- [2, 3, 2, 3, 4, 3, 2, 3, 2]
120119
*

0 commit comments

Comments
 (0)