Skip to content

Commit 3299370

Browse files
committed
fix getting sliced array
1 parent 18b0a6d commit 3299370

File tree

1 file changed

+2
-2
lines changed
  • multik-core/src/commonMain/kotlin/org/jetbrains/kotlinx/multik/ndarray/data

1 file changed

+2
-2
lines changed

multik-core/src/commonMain/kotlin/org/jetbrains/kotlinx/multik/ndarray/data/MultiArrays.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package org.jetbrains.kotlinx.multik.ndarray.data
@@ -460,7 +460,7 @@ public operator fun <T> MultiArray<T, D4>.get(ind1: Int, ind2: Int, ind3: Closed
460460
slice(mapOf(0 to ind1.r, 1 to ind2.r, 2 to ind3.toSlice(), 3 to ind4.toSlice()))
461461

462462
@JvmName("get44")
463-
public operator fun <T> MultiArray<T, D4>.get(ind1: Int, ind2: ClosedRange<Int>, ind3: Slice, ind4: Int): MultiArray<T, D2> =
463+
public operator fun <T> MultiArray<T, D4>.get(ind1: Int, ind2: ClosedRange<Int>, ind3: ClosedRange<Int>, ind4: Int): MultiArray<T, D2> =
464464
slice(mapOf(0 to ind1.r, 1 to ind2.toSlice(), 2 to ind3.toSlice(), 3 to ind4.r))
465465

466466
@JvmName("get45")

0 commit comments

Comments
 (0)