Java uses default matrix format, C uses fullmatrix format