From b8ff5938ffa5b3c9f81b92e73c951acb0e0bc0dc Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Fri, 9 Jul 2021 10:12:30 +0100 Subject: [PATCH] public casting --- kmath-noa/src/main/kotlin/space/kscience/kmath/noa/algebras.kt | 2 ++ 1 file changed, 2 insertions(+) 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 b386b36ca..eca3db5e9 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 @@ -22,6 +22,8 @@ protected constructor(protected val scope: NoaScope) : protected abstract fun wrap(tensorHandle: TensorHandle): TensorType + public fun Tensor.cast(): TensorType = tensor + /** * A scalar tensor must have empty shape */