NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

NDArray Split

Open lqdev opened this issue 5 years ago • 0 comments

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?

lqdev avatar Jun 01 '20 15:06 lqdev