struct_binary_matrix_t Struct Reference

Defines a matrix of bits. More...

#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


Detailed Description

Defines a matrix of bits.

This structure defines a matrix of bits which knows its current dimensions and its allocated memory space.

Note:
Internally, a matrix of bits is represented as a matrix of TIFA_BITSTRING_T elements.

Definition at line 71 of file matrix.h.


Field Documentation

Maximum number of rows of the matrix.

Definition at line 75 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.

Definition at line 86 of file matrix.h.

Current number of rows of the matrix.

Definition at line 90 of file matrix.h.

Referenced by first_row_with_one_on_col().

Current number of columns of the matrix.

Definition at line 94 of file matrix.h.

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().


The documentation for this struct was generated from the following file:

Generated on Fri Jun 17 11:10:12 2011 for TIFA by Doxygen 1.5.5