From 68d0e9958f22d0abb9e9f6256052fcc08bf550ad Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Fri, 9 Jul 2021 09:36:39 +0100 Subject: [PATCH] renaming --- .../kotlin/space/kscience/kmath/noa/{Noa.kt => api.kt} | 0 .../src/main/kotlin/space/kscience/kmath/noa/tensors.kt | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename kmath-noa/src/main/kotlin/space/kscience/kmath/noa/{Noa.kt => api.kt} (100%) diff --git a/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/Noa.kt b/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/api.kt similarity index 100% rename from kmath-noa/src/main/kotlin/space/kscience/kmath/noa/Noa.kt rename to kmath-noa/src/main/kotlin/space/kscience/kmath/noa/api.kt diff --git a/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/tensors.kt b/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/tensors.kt index e24f29b9b..d6353f179 100644 --- a/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/tensors.kt +++ b/kmath-noa/src/main/kotlin/space/kscience/kmath/noa/tensors.kt @@ -47,22 +47,22 @@ constructor(scope: NoaScope, internal val tensorHandle: TensorHandle) : } - public fun copyToDouble(): NoaDoubleTensor = NoaDoubleTensor( + public fun asDouble(): NoaDoubleTensor = NoaDoubleTensor( scope = scope, tensorHandle = JNoa.copyToDouble(this.tensorHandle) ) - public fun copyToFloat(): NoaFloatTensor = NoaFloatTensor( + public fun asFloat(): NoaFloatTensor = NoaFloatTensor( scope = scope, tensorHandle = JNoa.copyToFloat(this.tensorHandle) ) - public fun copyToLong(): NoaLongTensor = NoaLongTensor( + public fun asLong(): NoaLongTensor = NoaLongTensor( scope = scope, tensorHandle = JNoa.copyToLong(this.tensorHandle) ) - public fun copyToInt(): NoaIntTensor = NoaIntTensor( + public fun asInt(): NoaIntTensor = NoaIntTensor( scope = scope, tensorHandle = JNoa.copyToInt(this.tensorHandle) )