We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8a34e3 commit 48e4fa0Copy full SHA for 48e4fa0
1 file changed
src/NumSharp.Core/Backends/NDArray.cs
@@ -256,7 +256,11 @@ protected internal unsafe void* Address
256
/// <summary>
257
/// Data length of every dimension
258
/// </summary>
259
- public int[] shape => Storage.Shape.Dimensions;
+ public int[] shape
260
+ {
261
+ get => Storage.Shape.Dimensions;
262
+ set => Storage.Reshape(value);
263
+ }
264
265
266
/// Dimension count
0 commit comments