Skip to content

Commit fe251b7

Browse files
committed
np.take_along_axis: changed axis to nullable int
1 parent e6ee692 commit fe251b7

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/CodeMinion.ApiGenerator/NumPy/ApiGenerator.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ private void PostProcess(Function decl)
814814
decl.ManualOverride = true;
815815
break;
816816
case "take_along_axis":
817+
decl.Arguments[2].IsNullable = true;
817818
decl.Returns.Clear();
818819
decl.Returns.Add(new Argument() { Type = "NDarray", Name = "array", IsReturnValue = true });
819820
break;

‎src/Numpy/Models/NDarray.gen.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ public NDarray[] triu_indices_from(int? k = 0)
24872487
/// treated as if it had first been flattened to 1d, for consistency with
24882488
/// sort and argsort.
24892489
/// </param>
2490-
public NDarray take_along_axis(NDarray indices, int axis)
2490+
public NDarray take_along_axis(NDarray indices, int? axis = null)
24912491
{
24922492
//auto-generated code, do not change
24932493
var __self__=self;

‎src/Numpy/np.indexing.gen.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ public static NDarray take(NDarray[] a, NDarray[] indices, int? axis = null, NDa
709709
/// treated as if it had first been flattened to 1d, for consistency with
710710
/// sort and argsort.
711711
/// </param>
712-
public static NDarray take_along_axis(NDarray arr, NDarray indices, int axis)
712+
public static NDarray take_along_axis(NDarray arr, NDarray indices, int? axis = null)
713713
{
714714
//auto-generated code, do not change
715715
var __self__=self;

0 commit comments

Comments
 (0)