From 40bab168a7abe2f91ae6be87e1e797cb6be137e0 Mon Sep 17 00:00:00 2001 From: Margarita Date: Wed, 25 May 2022 01:16:56 +0300 Subject: [PATCH] reformatted code --- .../space/kscience/kmath/tensors/svdcmp.kt | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/examples/src/main/kotlin/space/kscience/kmath/tensors/svdcmp.kt b/examples/src/main/kotlin/space/kscience/kmath/tensors/svdcmp.kt index 8572bdee9..ec4c8cc32 100644 --- a/examples/src/main/kotlin/space/kscience/kmath/tensors/svdcmp.kt +++ b/examples/src/main/kotlin/space/kscience/kmath/tensors/svdcmp.kt @@ -65,8 +65,7 @@ internal fun MutableStructure2D.svdGolabKahan(v: MutableStructure2D= 0) { g = (-1) * abs(sqrt(s)) - } - else { + } else { g = abs(sqrt(s)) } val h = f * g - s @@ -106,8 +105,7 @@ internal fun MutableStructure2D.svdGolabKahan(v: MutableStructure2D= 0) { g = (-1) * abs(sqrt(s)) - } - else { + } else { g = abs(sqrt(s)) } val h = f * g - s @@ -140,7 +138,7 @@ internal fun MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D.svdGolabKahan(v: MutableStructure2D