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 */