remove get index tensor
This commit is contained in:
parent
b8ff5938ff
commit
e6e117f694
@ -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);
|
||||
|
@ -78,9 +78,6 @@ protected constructor(protected val scope: NoaScope) :
|
||||
override operator fun Tensor<T>.get(i: Int): TensorType =
|
||||
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(
|
||||
diagonalEntries: Tensor<T>, offset: Int, dim1: Int, dim2: Int
|
||||
): TensorType =
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user