Skip to content

Commit 61abb30

Browse files
committed
Fix description of arguments of csr_to_dense_matrix
1 parent 39bf5b6 commit 61abb30

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/functions-reference/sparse_matrix_operations.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ a single function.
9494
`matrix` **`csr_to_dense_matrix`**`(int m, int n, vector w, int[] v, int[] u)`<br>\newline
9595
Return dense $\text{m} \times \text{n}$ matrix with non-zero matrix
9696
entries w, column indices v, and row starting indices u; the vector w
97-
and arrays v and u must all be the same size, and the arrays v and u
98-
must have index values bounded by m and n. see section [compressed row storage](#CSR) for
99-
more details.
97+
and array v must be the same size (corresponding to the total number of
98+
nonzero entries in the matrix), array v must have index values bounded
99+
by m, array u must have length equal to m + 1 and contain index values
100+
bounded by n (except for the last entry, which should be equal to one plus
101+
the length of w). See section [compressed row storage](#CSR) for more details.
100102

101103
## Sparse Matrix Arithmetic
102104

@@ -116,4 +118,3 @@ rather than $A$ as a sparse matrix.
116118
Multiply the $\text{m} \times \text{n}$ matrix represented by values
117119
w, column indices v, and row start indices u by the vector b; see
118120
[compressed row storage](#CSR).
119-

0 commit comments

Comments
 (0)