Skip to content

Commit 7122e42

Browse files
committed
NDArray.flatten(bool): fixed overload ambiguous.
1 parent 91ed7d5 commit 7122e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NumSharp.Core/Manipulation/NDArray.flatten.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public partial class NDArray
88
/// <param name="clone">Should the data be cloned, true by default.</param>
99
/// <returns>A copy of the input array, flattened to one dimension.</returns>
1010
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.flatten.html</remarks>
11-
public NDArray flatten(bool clone = true) => clone ? new NDArray(CloneData(), Shape.Vector(size)) : new NDArray(Storage, Shape.Vector(size));
11+
public NDArray flatten(bool clone) => clone ? new NDArray(CloneData(), Shape.Vector(size)) : new NDArray(Storage, Shape.Vector(size));
1212
}
1313
}

0 commit comments

Comments
 (0)