SciSharp / NumSharp

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

Slice assignment? #375

Open solarflarefx opened 4 years ago

solarflarefx commented 4 years ago

If you declare an array of a specific size, is there a way to assign slices of arrays?

For example, if x is an NDArray of size (5,2,3,4), is there a way to do something like the following?

NDArray a = some NDArray of size (1,2,3,4)

x[0,:,:,:] = a

Nucs commented 4 years ago

Related to https://github.com/SciSharp/NumSharp/issues/369 https://github.com/SciSharp/NumSharp/issues/368 https://github.com/SciSharp/NumSharp/issues/366 and is work in progress.