remove get index tensor

This commit is contained in:
Roland Grinis 2021-07-10 14:26:13 +01:00
parent b8ff5938ff
commit e6e117f694
3 changed files with 0 additions and 13 deletions

View File

@ -80,8 +80,6 @@ class JNoa {
public static native long getIndex(long tensorHandle, int index); 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 double getDouble(long tensorHandle, int[] index);
public static native float getFloat(long tensorHandle, int[] index); public static native float getFloat(long tensorHandle, int[] index);

View File

@ -78,9 +78,6 @@ protected constructor(protected val scope: NoaScope) :
override operator fun Tensor<T>.get(i: Int): TensorType = override operator fun Tensor<T>.get(i: Int): TensorType =
wrap(JNoa.getIndex(tensor.tensorHandle, i)) wrap(JNoa.getIndex(tensor.tensorHandle, i))
public operator fun Tensor<T>.get(indexTensor: NoaLongTensor): TensorType =
wrap(JNoa.getIndexTensor(tensor.tensorHandle, indexTensor.tensorHandle))
override fun diagonalEmbedding( override fun diagonalEmbedding(
diagonalEntries: Tensor<T>, offset: Int, dim1: Int, dim2: Int diagonalEntries: Tensor<T>, offset: Int, dim1: Int, dim2: Int
): TensorType = ): TensorType =

View File

@ -247,14 +247,6 @@ JNIEXPORT jint JNICALL Java_space_kscience_kmath_noa_JNoa_getItemInt
JNIEXPORT jlong JNICALL Java_space_kscience_kmath_noa_JNoa_getIndex JNIEXPORT jlong JNICALL Java_space_kscience_kmath_noa_JNoa_getIndex
(JNIEnv *, jclass, jlong, jint); (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 * Class: space_kscience_kmath_noa_JNoa
* Method: getDouble * Method: getDouble