From 83620c77d2ef329fdda6a4ecaf53fc0a6c0686c7 Mon Sep 17 00:00:00 2001 From: margarita0303 Date: Wed, 13 Jul 2022 19:51:17 +0300 Subject: [PATCH] functions SIGN and pythag are made private --- .../space/kscience/kmath/tensors/core/internal/linUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/core/internal/linUtils.kt b/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/core/internal/linUtils.kt index 2c9a0cf8d..059011c6d 100644 --- a/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/core/internal/linUtils.kt +++ b/kmath-tensors/src/commonMain/kotlin/space/kscience/kmath/tensors/core/internal/linUtils.kt @@ -351,7 +351,7 @@ internal fun DoubleTensorAlgebra.svdHelper( } } -internal fun pythag(a: Double, b: Double): Double { +private fun pythag(a: Double, b: Double): Double { val at: Double = abs(a) val bt: Double = abs(b) val ct: Double @@ -366,7 +366,7 @@ internal fun pythag(a: Double, b: Double): Double { return result } -internal fun SIGN(a: Double, b: Double): Double { +private fun SIGN(a: Double, b: Double): Double { if (b >= 0.0) return abs(a) else