Function m4ri_sys::m4ri_opt_k[][src]

pub unsafe extern "C" fn m4ri_opt_k(a: c_int, b: c_int, c: c_int) -> c_int

Return the optimal var k for the given parameters

If var c != 0, then var k for multiplication is returned, else var k for inversion. The optimal var k here means $0.75 log_2(n)$ where n is min(a,b) for inversion and b for multiplication.

a: Number of rows of (first) matrix b: Number of columns of (first) matrix c: Number of columns of second matrix (may be 0)

Returns k