diff --git a/kmath-noa/src/main/java/space/kscience/kmath/noa/JNoa.java b/kmath-noa/src/main/java/space/kscience/kmath/noa/JNoa.java index accf01198..4b9aa492a 100644 --- a/kmath-noa/src/main/java/space/kscience/kmath/noa/JNoa.java +++ b/kmath-noa/src/main/java/space/kscience/kmath/noa/JNoa.java @@ -80,8 +80,6 @@ class JNoa { public static native long getIndex(long tensorHandle, int index); - public static native long getIndexTensor(long tensorHandle, long indexTensorHandle); - public static native double getDouble(long tensorHandle, int[] index); public static native float getFloat(long tensorHandle, int[] index); diff --git a/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/algebras.kt b/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/algebras.kt index eca3db5e9..f92acdebd 100644 --- a/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/algebras.kt +++ b/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/algebras.kt @@ -78,9 +78,6 @@ protected constructor(protected val scope: NoaScope) : override operator fun Tensor.get(i: Int): TensorType = wrap(JNoa.getIndex(tensor.tensorHandle, i)) - public operator fun Tensor.get(indexTensor: NoaLongTensor): TensorType = - wrap(JNoa.getIndexTensor(tensor.tensorHandle, indexTensor.tensorHandle)) - override fun diagonalEmbedding( diagonalEntries: Tensor, offset: Int, dim1: Int, dim2: Int ): TensorType = diff --git a/kmath-noa/src/main/resources/space_kscience_kmath_noa_JNoa.h b/kmath-noa/src/main/resources/space_kscience_kmath_noa_JNoa.h index 483f457a7..a9a5866c2 100644 --- a/kmath-noa/src/main/resources/space_kscience_kmath_noa_JNoa.h +++ b/kmath-noa/src/main/resources/space_kscience_kmath_noa_JNoa.h @@ -247,14 +247,6 @@ JNIEXPORT jint JNICALL Java_space_kscience_kmath_noa_JNoa_getItemInt JNIEXPORT jlong JNICALL Java_space_kscience_kmath_noa_JNoa_getIndex (JNIEnv *, jclass, jlong, jint); -/* - * Class: space_kscience_kmath_noa_JNoa - * Method: getIndexTensor - * Signature: (JJ)J - */ -JNIEXPORT jlong JNICALL Java_space_kscience_kmath_noa_JNoa_getIndexTensor - (JNIEnv *, jclass, jlong, jlong); - /* * Class: space_kscience_kmath_noa_JNoa * Method: getDouble