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.

Function rc_matrix_empty

Function Documentation

rc_matrix_t rc_matrix_empty(void)

Returns an rc_matrix_t with no allocated memory and the initialized flag set to 0.

This is essential for initializing rc_matrix_t structs when they are declared since local variables declared in a function without global variable scope in C are not guaranteed to be zeroed out which can lead to bad memory pointers and segfaults if not handled carefully. We recommend initializing all matrices with this before using rc_matrix_alloc or any other function.


Returns an empty rc_matrix_t