File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/NumSharp.Core/Backends Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,13 @@ public NDArray[] GetNDArrays(int axis = 0)
496
496
/// <returns>reference to internal storage as System.Array</returns>
497
497
public IArraySlice GetData ( ) => Storage . GetData ( ) ;
498
498
499
+ /// <summary>
500
+ /// Gets a NDArray at given <paramref name="indices"/>.
501
+ /// </summary>
502
+ /// <param name="indices">The coordinates to the wanted value</param>
503
+ /// <remarks>Does not copy, returns a memory slice - this is similar to this[int[]]</remarks>
504
+ public NDArray GetData ( params int [ ] indices ) => new NDArray ( Storage . GetData ( indices ) ) { tensorEngine = this . tensorEngine } ;
505
+
499
506
/// <summary>
500
507
/// Retrieves value of type <see cref="bool"/>.
501
508
/// </summary>
You can’t perform that action at this time.
0 commit comments