This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Struct rc_matrix_t

Struct Documentation

struct rc_matrix_t

Struct containing the state of a matrix and a pointer to dynamically allocated memory to hold its contents.

Set and read values directly with this code:

matrix.d[row][col] = new_value; // set value in the matrix
value = matrix.d[row][col];     // get value from the matrix

Public Members

int rows

number of rows in the matrix

int cols

number of columns in the matrix

double **d

pointer to allocated 2d array

int initialized

set to 1 once memory has been allocated