Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #17665: reviewer's commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanncohen committed Jan 26, 2015
1 parent 1a1d430 commit 74ff5b2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/sage/data_structures/binary_matrix.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ It's almost a copy of the bitset datatype, but allows a differentiation of the
rows of the matrix. That's the only advantage compared to storing all the rows
of a matrix in a loooooonng bitset.
a ``binary_matrix_t`` structure contains :
A ``binary_matrix_t`` structure contains :
- ``long n_cols`` -- number of columns
- ``long n_rows`` -- number of rows
- ``long width`` -- number of ``unsigned long`` per row
- ``bitset_t * rows`` -- ``rows[i]`` points toward a block of type ``bitset_t``
containing the bits of row `i`.
Expand Down Expand Up @@ -84,10 +82,7 @@ cdef inline binary_matrix_set(binary_matrix_t m, long row, long col, bint value)
r"""
Sets an entry
"""
if value:
binary_matrix_set1(m,row,col)
else:
binary_matrix_set0(m,row,col)
bitset_set_to(m.rows[row],col,value)

cdef inline bint binary_matrix_get(binary_matrix_t m, long row, long col):
r"""
Expand Down

0 comments on commit 74ff5b2

Please sign in to comment.