Skip to content

Commit 3bd46ee

Browse files
committed
NDArray: Added Unsafe.Shape
1 parent 31716d7 commit 3bd46ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NumSharp.Core/Backends/NDArray.Unmanaged.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ internal IArraySlice Array
7171
/// </summary>
7272
public UnmanagedStorage Storage => _this.Storage;
7373

74+
/// <summary>
75+
/// Provides access to the internal <see cref="Shape"/>.
76+
/// </summary>
77+
public Shape Shape => _this.Storage.Shape;
78+
7479
/// A Span representing this slice.
7580
/// <remarks>Does not perform copy.</remarks>
7681
public Span<T> AsSpan<T>()

0 commit comments

Comments
 (0)