Document ShapeND.asArray()

This commit is contained in:
Alexander Nozik 2024-04-15 18:01:58 +03:00
parent 9228e6019c
commit fc0393436f

View File

@ -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