@@ -41,7 +41,6 @@ def readinto_new_buffer(f, typ, size, allocator=stdlib.malloc):
41
41
size: {size}
42
42
type: {type}
43
43
iso: {iso}
44
- jumbled: {jumbled}
45
44
{comments}
46
45
"""
47
46
@@ -239,8 +238,8 @@ def binwrite(A, filename, comments=None, opener=Path.open):
239
238
240
239
suitesparse_version = (
241
240
f"v{ lib .GxB_IMPLEMENTATION_MAJOR } ."
242
- "{lib.GxB_IMPLEMENTATION_MINOR}."
243
- "{lib.GxB_IMPLEMENTATION_SUB}"
241
+ f "{ lib .GxB_IMPLEMENTATION_MINOR } ."
242
+ f "{ lib .GxB_IMPLEMENTATION_SUB } "
244
243
)
245
244
246
245
vars = dict (
@@ -253,8 +252,7 @@ def binwrite(A, filename, comments=None, opener=Path.open):
253
252
format = fmt_string ,
254
253
size = typesize [0 ],
255
254
type = _ss_typenames [matrix_type [0 ]],
256
- iso = is_iso [0 ],
257
- jumbled = is_jumbled [0 ],
255
+ iso = int (is_iso [0 ]),
258
256
comments = comments ,
259
257
)
260
258
header_content = header_template .format (** vars )
@@ -276,7 +274,6 @@ def binwrite(A, filename, comments=None, opener=Path.open):
276
274
fwrite (buff (typecode , sizeof ("int32_t" )))
277
275
fwrite (buff (typesize , sizeof ("size_t" )))
278
276
fwrite (buff (is_iso , sizeof ("bool" )))
279
- fwrite (buff (is_jumbled , sizeof ("bool" )))
280
277
281
278
if is_hyper :
282
279
Ap_size [0 ] = (nvec [0 ] + 1 ) * Isize
@@ -406,7 +403,7 @@ def binread(filename, opener=Path.open):
406
403
typecode = frombuff ("int32_t*" , fread (sizeof ("int32_t" )))
407
404
typesize = frombuff ("size_t*" , fread (sizeof ("size_t" )))
408
405
is_iso = frombuff ("bool*" , fread (sizeof ("bool" )))
409
- is_jumbled = frombuff ("bool*" , fread ( sizeof ( "bool" )) )
406
+ is_jumbled = ffi . new ("bool*" , 0 )
410
407
411
408
by_row = format [0 ] == lib .GxB_BY_ROW
412
409
by_col = format [0 ] == lib .GxB_BY_COL
0 commit comments