pub unsafe extern "C" fn matd_identity(dim: c_int) -> *mut matd_t
Expand description

Creates a square identity matrix with the given number of rows (and therefore columns), or a scalar with value 1 in the case where dim=0. It is the caller’s responsibility to call matd_destroy() on the returned matrix.