Function rc_matrix_empty#
Defined in File matrix.h
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:
Returns an empty rc_matrix_t