We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa570de commit 4d8b5bdCopy full SHA for 4d8b5bd
src/NumSharp.Core/Casting/Implicit/NdArray.Implicit.ValueTypes.cs
@@ -29,6 +29,14 @@ namespace NumSharp.Core
29
{
30
public partial class NDArray
31
32
+ public static implicit operator string(NDArray nd)
33
+ {
34
+ if (nd.ndim > 0)
35
+ throw new IncorrectShapeException();
36
+
37
+ return nd.Data<string>(0);
38
+ }
39
40
public static implicit operator NDArray(float d)
41
42
var ndArray = new NDArray(typeof(float), new int[0]);
0 commit comments