@@ -201,6 +201,7 @@ def choose(a, choices, out=None, mode="wrap"):
201201 out : {None, dpnp.ndarray, usm_ndarray}, optional
202202 If provided, the result will be placed in this array. It should
203203 be of the appropriate shape and dtype.
204+
204205 Default: ``None``.
205206 mode : {"wrap", "clip"}, optional
206207 Specifies how out-of-bounds indices will be handled. Possible values
@@ -365,10 +366,12 @@ def compress(condition, a, axis=None, out=None):
365366 axis : {None, int}, optional
366367 Axis along which to extract slices. If ``None``, works over the
367368 flattened array.
369+
368370 Default: ``None``.
369371 out : {None, dpnp.ndarray, usm_ndarray}, optional
370372 If provided, the result will be placed in this array. It should
371373 be of the appropriate shape and dtype.
374+
372375 Default: ``None``.
373376
374377 Returns
@@ -461,21 +464,28 @@ def diag_indices(n, ndim=2, device=None, usm_type="device", sycl_queue=None):
461464 The size, along each dimension, of the arrays for which the returned
462465 indices can be used.
463466 ndim : int, optional
464- The number of dimensions. Default: ``2``.
467+ The number of dimensions.
468+
469+ Default: ``2``.
465470 device : {None, string, SyclDevice, SyclQueue}, optional
466471 An array API concept of device where the output array is created.
467472 The `device` can be ``None`` (the default), an OneAPI filter selector
468473 string, an instance of :class:`dpctl.SyclDevice` corresponding to
469474 a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
470475 or a `Device` object returned by
471476 :obj:`dpnp.dpnp_array.dpnp_array.device` property.
477+
478+ Default: ``None``.
472479 usm_type : {"device", "shared", "host"}, optional
473480 The type of SYCL USM allocation for the output array.
481+
482+ Default: ``"device"``.
474483 sycl_queue : {None, SyclQueue}, optional
475484 A SYCL queue to use for output array allocation and copying. The
476485 `sycl_queue` can be passed as ``None`` (the default), which means
477486 to get the SYCL queue from `device` keyword if present or to use
478487 a default queue.
488+
479489 Default: ``None``.
480490
481491 Returns
@@ -620,13 +630,19 @@ def diagonal(a, offset=0, axis1=0, axis2=1):
620630 Array from which the diagonals are taken.
621631 offset : int, optional
622632 Offset of the diagonal from the main diagonal. Can be positive or
623- negative. Defaults to main diagonal (``0``).
633+ negative. Defaults to main diagonal.
634+
635+ Default: ``0``.
624636 axis1 : int, optional
625637 Axis to be used as the first axis of the 2-D sub-arrays from which
626- the diagonals should be taken. Defaults to first axis (``0``).
638+ the diagonals should be taken. Defaults to first axis.
639+
640+ Default: ``0``.
627641 axis2 : int, optional
628642 Axis to be used as the second axis of the 2-D sub-arrays from
629- which the diagonals should be taken. Defaults to second axis (``1``).
643+ which the diagonals should be taken. Defaults to second axis.
644+
645+ Default: ``1``.
630646
631647 Returns
632648 -------
@@ -859,7 +875,9 @@ def fill_diagonal(a, val, wrap=False):
859875 diagonal entries.
860876 wrap : bool
861877 It enables the diagonal "wrapped" after N columns. This affects only
862- tall matrices. Default: ``False``.
878+ tall matrices.
879+
880+ Default: ``False``.
863881
864882 See Also
865883 --------
@@ -1047,25 +1065,34 @@ def indices(
10471065 ----------
10481066 dimensions : sequence of ints
10491067 The shape of the grid.
1050- dtype : {None, dtype}, optional
1068+ dtype : {None, str, dtype object }, optional
10511069 Data type of the result.
1070+
1071+ Default: ``int``.
10521072 sparse : {None, boolean}, optional
10531073 Return a sparse representation of the grid instead of a dense
1054- representation. Default is ``False``.
1074+ representation.
1075+
1076+ Default is ``False``.
10551077 device : {None, string, SyclDevice, SyclQueue}, optional
10561078 An array API concept of device where the output array is created.
10571079 The `device` can be ``None`` (the default), an OneAPI filter selector
10581080 string, an instance of :class:`dpctl.SyclDevice` corresponding to
10591081 a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
10601082 or a `Device` object returned by
10611083 :obj:`dpnp.dpnp_array.dpnp_array.device` property.
1084+
1085+ Default: ``None``.
10621086 usm_type : {"device", "shared", "host"}, optional
10631087 The type of SYCL USM allocation for the output array.
1088+
1089+ Default: ``"device"``.
10641090 sycl_queue : {None, SyclQueue}, optional
10651091 A SYCL queue to use for output array allocation and copying. The
10661092 `sycl_queue` can be passed as ``None`` (the default), which means
10671093 to get the SYCL queue from `device` keyword if present or to use
10681094 a default queue.
1095+
10691096 Default: ``None``.
10701097
10711098 Returns
@@ -1308,21 +1335,28 @@ def mask_indices(
13081335 k : scalar
13091336 An optional argument which is passed through to `mask_func`. Functions
13101337 like :obj:`dpnp.triu`, :obj:`dpnp.tril` take a second argument that is
1311- interpreted as an offset. Default: ``0``.
1338+ interpreted as an offset.
1339+
1340+ Default: ``0``.
13121341 device : {None, string, SyclDevice, SyclQueue}, optional
13131342 An array API concept of device where the output array is created.
13141343 The `device` can be ``None`` (the default), an OneAPI filter selector
13151344 string, an instance of :class:`dpctl.SyclDevice` corresponding to
13161345 a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
13171346 or a `Device` object returned by
13181347 :obj:`dpnp.dpnp_array.dpnp_array.device` property.
1348+
1349+ Default: ``None``.
13191350 usm_type : {"device", "shared", "host"}, optional
13201351 The type of SYCL USM allocation for the output array.
1352+
1353+ Default: ``"device"``.
13211354 sycl_queue : {None, SyclQueue}, optional
13221355 A SYCL queue to use for output array allocation and copying. The
13231356 `sycl_queue` can be passed as ``None`` (the default), which means
13241357 to get the SYCL queue from `device` keyword if present or to use
13251358 a default queue.
1359+
13261360 Default: ``None``.
13271361
13281362 Returns
@@ -1630,6 +1664,7 @@ def put(a, ind, v, /, *, axis=None, mode="wrap"):
16301664 axis : {None, int}, optional
16311665 The axis along which the values will be placed. If `a` is 1-D array,
16321666 this argument is optional.
1667+
16331668 Default: ``None``.
16341669 mode : {'wrap', 'clip'}, optional
16351670 Specifies how out-of-bounds indices will behave.
@@ -1848,10 +1883,12 @@ def ravel_multi_index(multi_index, dims, mode="raise", order="C"):
18481883
18491884 In ``"clip"`` mode, a negative index which would normally wrap will
18501885 clip to 0 instead.
1886+
18511887 Default: ``"raise"``.
18521888 order : {None, "C", "F"}, optional
18531889 Determines whether the multi-index should be viewed as indexing in
18541890 row-major (C-style) or column-major (Fortran-style) order.
1891+
18551892 Default: ``"C"``.
18561893
18571894 Returns
@@ -1952,7 +1989,9 @@ def select(condlist, choicelist, default=0):
19521989 to be of the same length as `condlist`.
19531990 default : {scalar, dpnp.ndarray, usm_ndarray}, optional
19541991 The element inserted in `output` when all conditions evaluate to
1955- ``False``. Default: ``0``.
1992+ ``False``.
1993+
1994+ Default: ``0``.
19561995
19571996 Returns
19581997 -------
@@ -2074,10 +2113,12 @@ def take(a, indices, /, *, axis=None, out=None, mode="wrap"):
20742113 axis : {None, int, bool, 0-d array of integer dtype}, optional
20752114 The axis over which to select values. By default, the flattened
20762115 input array is used.
2116+
20772117 Default: ``None``.
20782118 out : {None, dpnp.ndarray, usm_ndarray}, optional (Ni..., Nj..., Nk...)
20792119 If provided, the result will be placed in this array. It should
20802120 be of the appropriate shape and dtype.
2121+
20812122 Default: ``None``.
20822123 mode : {"wrap", "clip"}, optional
20832124 Specifies how out-of-bounds indices will be handled. Possible values
@@ -2298,25 +2339,34 @@ def tril_indices(
22982339 The row dimension of the arrays for which the returned
22992340 indices will be valid.
23002341 k : int, optional
2301- Diagonal offset (see :obj:`dpnp.tril` for details). Default: ``0``.
2342+ Diagonal offset (see :obj:`dpnp.tril` for details).
2343+
2344+ Default: ``0``.
23022345 m : {None, int}, optional
23032346 The column dimension of the arrays for which the returned
23042347 arrays will be valid.
2305- By default `m` is taken equal to `n`. Default: ``None``.
2348+ By default `m` is taken equal to `n`.
2349+
2350+ Default: ``None``.
23062351 device : {None, string, SyclDevice, SyclQueue}, optional
23072352 An array API concept of device where the output array is created.
23082353 The `device` can be ``None`` (the default), an OneAPI filter selector
23092354 string, an instance of :class:`dpctl.SyclDevice` corresponding to
23102355 a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
23112356 or a `Device` object returned by
23122357 :obj:`dpnp.dpnp_array.dpnp_array.device` property.
2358+
2359+ Default: ``None``.
23132360 usm_type : {"device", "shared", "host"}, optional
23142361 The type of SYCL USM allocation for the output array.
2362+
2363+ Default: ``"device"``.
23152364 sycl_queue : {None, SyclQueue}, optional
23162365 A SYCL queue to use for output array allocation and copying. The
23172366 `sycl_queue` can be passed as ``None`` (the default), which means
23182367 to get the SYCL queue from `device` keyword if present or to use
23192368 a default queue.
2369+
23202370 Default: ``None``.
23212371
23222372 Returns
@@ -2411,7 +2461,9 @@ def tril_indices_from(arr, k=0):
24112461 The indices will be valid for square arrays whose dimensions are
24122462 the same as arr.
24132463 k : int, optional
2414- Diagonal offset (see :obj:`dpnp.tril` for details). Default: ``0``.
2464+ Diagonal offset (see :obj:`dpnp.tril` for details).
2465+
2466+ Default: ``0``.
24152467
24162468 Returns
24172469 -------
@@ -2496,25 +2548,34 @@ def triu_indices(
24962548 The size of the arrays for which the returned indices will
24972549 be valid.
24982550 k : int, optional
2499- Diagonal offset (see :obj:`dpnp.triu` for details). Default: ``0``.
2551+ Diagonal offset (see :obj:`dpnp.triu` for details).
2552+
2553+ Default: ``0``.
25002554 m : int, optional
25012555 The column dimension of the arrays for which the returned
25022556 arrays will be valid.
2503- By default `m` is taken equal to `n`. Default: ``None``.
2557+ By default `m` is taken equal to `n`.
2558+
2559+ Default: ``None``.
25042560 device : {None, string, SyclDevice, SyclQueue}, optional
25052561 An array API concept of device where the output array is created.
25062562 The `device` can be ``None`` (the default), an OneAPI filter selector
25072563 string, an instance of :class:`dpctl.SyclDevice` corresponding to
25082564 a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
25092565 or a `Device` object returned by
25102566 :obj:`dpnp.dpnp_array.dpnp_array.device` property.
2567+
2568+ Default: ``"device"``.
25112569 usm_type : {"device", "shared", "host"}, optional
25122570 The type of SYCL USM allocation for the output array.
2571+
2572+ Default: ``None``.
25132573 sycl_queue : {None, SyclQueue}, optional
25142574 A SYCL queue to use for output array allocation and copying. The
25152575 `sycl_queue` can be passed as ``None`` (the default), which means
25162576 to get the SYCL queue from `device` keyword if present or to use
25172577 a default queue.
2578+
25182579 Default: ``None``.
25192580
25202581 Returns
@@ -2611,7 +2672,9 @@ def triu_indices_from(arr, k=0):
26112672 The indices will be valid for square arrays whose dimensions are
26122673 the same as arr.
26132674 k : int, optional
2614- Diagonal offset (see :obj:`dpnp.triu` for details). Default: ``0``.
2675+ Diagonal offset (see :obj:`dpnp.triu` for details).
2676+
2677+ Default: ``0``.
26152678
26162679 Returns
26172680 -------
@@ -2694,6 +2757,7 @@ def unravel_index(indices, shape, order="C"):
26942757 order : {None, "C", "F"}, optional
26952758 Determines whether the indices should be viewed as indexing in
26962759 row-major (C-style) or column-major (Fortran-style) order.
2760+
26972761 Default: ``"C"``.
26982762
26992763 Returns
0 commit comments