diff --git a/kmath-core/src/commonMain/kotlin/space/kscience/kmath/nd/ShapeND.kt b/kmath-core/src/commonMain/kotlin/space/kscience/kmath/nd/ShapeND.kt index dee22e49f..d5cdc6286 100644 --- a/kmath-core/src/commonMain/kotlin/space/kscience/kmath/nd/ShapeND.kt +++ b/kmath-core/src/commonMain/kotlin/space/kscience/kmath/nd/ShapeND.kt @@ -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