@@ -1201,6 +1201,7 @@ def std(
12011201 * ,
12021202 where = True ,
12031203 mean = None ,
1204+ correction = None ,
12041205):
12051206 r"""
12061207 Compute the standard deviation along the specified axis.
@@ -1253,6 +1254,12 @@ def std(
12531254
12541255 Default: ``None``.
12551256
1257+ correction : {int, float}, optional
1258+ Array API compatible name for the `ddof` parameter. Only one of them
1259+ can be provided at the same time.
1260+
1261+ Default: ``None``.
1262+
12561263 Returns
12571264 -------
12581265 out : dpnp.ndarray
@@ -1344,6 +1351,13 @@ def std(
13441351 dpnp .check_supported_arrays_type (a )
13451352 dpnp .check_limitations (where = where )
13461353
1354+ if correction is not None :
1355+ if ddof != 0 :
1356+ raise ValueError (
1357+ "ddof and correction can't be provided simultaneously."
1358+ )
1359+ ddof = correction
1360+
13471361 if not isinstance (ddof , (int , float )):
13481362 raise TypeError (
13491363 f"An integer or float is required, but got { type (ddof )} "
@@ -1382,6 +1396,7 @@ def var(
13821396 * ,
13831397 where = True ,
13841398 mean = None ,
1399+ correction = None ,
13851400):
13861401 r"""
13871402 Compute the variance along the specified axis.
@@ -1433,6 +1448,12 @@ def var(
14331448
14341449 Default: ``None``.
14351450
1451+ correction : {int, float}, optional
1452+ Array API compatible name for the `ddof` parameter. Only one of them
1453+ can be provided at the same time.
1454+
1455+ Default: ``None``.
1456+
14361457 Returns
14371458 -------
14381459 out : dpnp.ndarray
@@ -1518,6 +1539,13 @@ def var(
15181539 dpnp .check_supported_arrays_type (a )
15191540 dpnp .check_limitations (where = where )
15201541
1542+ if correction is not None :
1543+ if ddof != 0 :
1544+ raise ValueError (
1545+ "ddof and correction can't be provided simultaneously."
1546+ )
1547+ ddof = correction
1548+
15211549 if not isinstance (ddof , (int , float )):
15221550 raise TypeError (
15231551 f"An integer or float is required, but got { type (ddof )} "
0 commit comments