From 916bc69e4b6ff002126c3457ddcb3ea8f5701e0f Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 11 Apr 2022 17:32:16 +0300 Subject: [PATCH] Revert changes in tensor algebra to remove name conflicts --- .../tensors/api/AnalyticTensorAlgebra.kt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/api/AnalyticTensorAlgebra.kt b/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/api/AnalyticTensorAlgebra.kt index b32fcf608..3ed34ae5e 100644 --- a/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/api/AnalyticTensorAlgebra.kt +++ b/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/api/AnalyticTensorAlgebra.kt @@ -123,27 +123,27 @@ public interface AnalyticTensorAlgebra> : //For information: https://pytorch.org/docs/stable/generated/torch.floor.html#torch.floor public fun StructureND.floor(): Tensor - override fun sin(arg: StructureND): Tensor = arg.sin() + override fun sin(arg: StructureND): StructureND = arg.sin() - override fun cos(arg: StructureND): Tensor = arg.cos() + override fun cos(arg: StructureND): StructureND = arg.cos() - override fun asin(arg: StructureND): Tensor = arg.asin() + override fun asin(arg: StructureND): StructureND = arg.asin() - override fun acos(arg: StructureND): Tensor = arg.acos() + override fun acos(arg: StructureND): StructureND = arg.acos() - override fun atan(arg: StructureND): Tensor = arg.atan() + override fun atan(arg: StructureND): StructureND = arg.atan() - override fun exp(arg: StructureND): Tensor = arg.exp() + override fun exp(arg: StructureND): StructureND = arg.exp() - override fun ln(arg: StructureND): Tensor = arg.ln() + override fun ln(arg: StructureND): StructureND = arg.ln() - override fun sinh(arg: StructureND): Tensor = arg.sinh() + override fun sinh(arg: StructureND): StructureND = arg.sinh() - override fun cosh(arg: StructureND): Tensor = arg.cosh() + override fun cosh(arg: StructureND): StructureND = arg.cosh() - override fun asinh(arg: StructureND): Tensor = arg.asinh() + override fun asinh(arg: StructureND): StructureND = arg.asinh() - override fun acosh(arg: StructureND): Tensor = arg.acosh() + override fun acosh(arg: StructureND): StructureND = arg.acosh() - override fun atanh(arg: StructureND): Tensor = arg.atanh() + override fun atanh(arg: StructureND): StructureND = arg.atanh() } \ No newline at end of file