Skip to content

Commit

Permalink
add clarification for csr (apache#182)
Browse files Browse the repository at this point in the history
* add clarification for csr

* cr comments
  • Loading branch information
eric-haibin-lin authored Aug 21, 2017
1 parent be74e64 commit d3c176c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/mxnet/ndarray/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ class CSRNDArray(BaseSparseNDArray):
row i are stored in indices[indptr[i]:indptr[i+1]] and their corresponding values are stored
in values[indptr[i]:indptr[i+1]].
The column indices for a given row are expected to be sorted in ascending order.
Duplicate column entries for the same row are not allowed.
Example
-------
>>> a = mx.nd.array([[0, 1, 0], [2, 0, 0], [0, 0, 0], [0, 0, 3]])
Expand Down

0 comments on commit d3c176c

Please sign in to comment.