You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NumSharp.Core/Creation/NdArray.Scalar.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ public partial class NDArray
18
18
/// <param name="dtype">The type of the scalar.</param>
19
19
/// <returns></returns>
20
20
/// <remarks>In case when <see cref="value"/> is not <see cref="dtype"/>, <see cref="Convert.ChangeType(object,System.Type)"/> will be called.</remarks>
@@ -29,7 +29,7 @@ public static NDArray Scalar(object value, Type dtype)
29
29
/// <param name="value">The value of the scalar</param>
30
30
/// <returns></returns>
31
31
/// <remarks>In case when <see cref="value"/> is not <see cref="dtype"/>, <see cref="Convert.ChangeType(object,System.Type)"/> will be called.</remarks>
32
-
publicstaticNDArrayScalar(objectvalue)
32
+
publicstaticNDArrayScalar(ValueTypevalue)
33
33
{
34
34
returnnewNDArray(UnmanagedStorage.Scalar(value));
35
35
}
@@ -52,7 +52,7 @@ public static NDArray Scalar<T>(T value) where T : unmanaged
52
52
/// <param name="typeCode">The type code of the scalar.</param>
53
53
/// <returns></returns>
54
54
/// <remarks>In case when <see cref="value"/> is not <see cref="dtype"/>, <see cref="Convert.ChangeType(object,System.Type)"/> will be called.</remarks>
0 commit comments