SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.38k stars 192 forks source link

NDArray Split #413

Open lqdev opened 4 years ago

lqdev commented 4 years ago

Given the following Python code:

a = [1, 2, 3, 99, 99, 3, 2, 1]
a1, a2, a3 = np.split(a, [3, 5])
print(a1, a2, a3)

Translated to F#:

let a = [|1;2;3;99;99;3;2;1|]
let a1,a2,a3 = np.split(a,[|3,5|])

When trying to call split, I get the following error

typecheck error The field, constructor or member 'split' is not defined

Calling split on its own without any input arguments, also returns the same error.

Is split implemented in NumSharp?