@@ -1348,7 +1348,7 @@ def eye(N, M=None, k=0, dtype=float, format="coo", **kwargs):
1348
1348
).asformat (format , ** kwargs )
1349
1349
1350
1350
1351
- def full (shape , fill_value , dtype = None , format = "coo" , ** kwargs ):
1351
+ def full (shape , fill_value , dtype = None , format = "coo" , order = "C" , ** kwargs ):
1352
1352
"""Return a SparseArray of given shape and type, filled with `fill_value`.
1353
1353
1354
1354
Parameters
@@ -1364,6 +1364,9 @@ def full(shape, fill_value, dtype=None, format="coo", **kwargs):
1364
1364
A format string.
1365
1365
compressed_axes : iterable, optional
1366
1366
The axes to compress if returning a GCXS array.
1367
+ order : {'C', None}
1368
+ Values except these are not currently supported and raise a
1369
+ NotImplementedError.
1367
1370
1368
1371
Returns
1369
1372
-------
@@ -1385,6 +1388,8 @@ def full(shape, fill_value, dtype=None, format="coo", **kwargs):
1385
1388
dtype = np .array (fill_value ).dtype
1386
1389
if not isinstance (shape , tuple ):
1387
1390
shape = (shape ,)
1391
+ if order not in {"C" , None }:
1392
+ raise NotImplementedError ("Currently, only 'C' and None are supported." )
1388
1393
data = np .empty (0 , dtype = dtype )
1389
1394
coords = np .empty ((len (shape ), 0 ), dtype = np .intp )
1390
1395
return COO (
0 commit comments