#include <lib/utils/include/matrix.h>
Data Fields | |
uint32_t | nrows_alloced |
uint32_t | ncols_alloced |
uint32_t | nrows |
uint32_t | ncols |
TIFA_BITSTRING_T ** | data |
This structure defines a matrix of bits which knows its current dimensions and its allocated memory space.
TIFA_BITSTRING_T
elements. Definition at line 71 of file matrix.h.
Maximum number of columns of the matrix. Since bits are packed in TIFA_BITSTRING_T
elements, the maximum number of bits per column is 8 * sizeof(TIFA_BITSTRING_T)
* nrows_alloced
.
Hence the total allocated memory for the data
field is nrows_alloced * ncols_alloced
* sizeof(TIFA_BITSTRING_T)
bytes.
uint32_t struct_binary_matrix_t::nrows |
Current number of rows of the matrix.
Definition at line 90 of file matrix.h.
Referenced by first_row_with_one_on_col().
uint32_t struct_binary_matrix_t::ncols |
TIFA_BITSTRING_T** struct_binary_matrix_t::data |
2D array of TIFA_BITSTRING_T
elements whose dimensions are given by the nrows_alloced
and ncols_alloced
fields.
Definition at line 99 of file matrix.h.
Referenced by first_row_with_one_on_col(), flip_matrix_bit(), get_matrix_bit(), set_matrix_bit_to_one(), and set_matrix_bit_to_zero().