Skip to content

Commit

Permalink
Document ShapeND.asArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
altavir committed Apr 15, 2024
1 parent 9228e60 commit fc03934
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public operator fun ShapeND.component3(): Int = get(2)
*/
public fun ShapeND.toArray(): IntArray = array.copyOf()

/**
* Provide internal content of [ShapeND]. Must not be modified.
*/
@UnsafeKMathAPI
public fun ShapeND.asArray(): IntArray = array

Expand Down

0 comments on commit fc03934

Please sign in to comment.