reformatted code

This commit is contained in:
Margarita 2022-05-25 01:16:56 +03:00
parent 97104ad40f
commit a497a5df1a

View File

@ -65,8 +65,7 @@ internal fun MutableStructure2D<Double>.svdGolabKahan(v: MutableStructure2D<Doub
f = this[i, i]
if (f >= 0) {
g = (-1) * abs(sqrt(s))
}
else {
} else {
g = abs(sqrt(s))
}
val h = f * g - s
@ -106,8 +105,7 @@ internal fun MutableStructure2D<Double>.svdGolabKahan(v: MutableStructure2D<Doub
f = this[i, l]
if (f >= 0) {
g = (-1) * abs(sqrt(s))
}
else {
} else {
g = abs(sqrt(s))
}
val h = f * g - s
@ -183,8 +181,7 @@ internal fun MutableStructure2D<Double>.svdGolabKahan(v: MutableStructure2D<Doub
for (j in i until m) {
this[j, i] *= g
}
}
else {
} else {
for (j in i until m) {
this[j, i] = 0.0
}