diff --git a/CHANGES b/CHANGES index c0becc5..597ad82 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,8 @@ Here you can see the full list of changes between each viktor release. Version 0.3.0 ------------- +Released on June 27th 2016 + - Dropped dependency on Yeppp! and embedded a re-worked simdstat. - Removed 'StridedVector.sumSq' in favour of 'dot'. - Switched to balanced summation in pure-Kotlin versions of diff --git a/src/main/kotlin/org/jetbrains/bio/viktor/StridedVector.kt b/src/main/kotlin/org/jetbrains/bio/viktor/StridedVector.kt index 6af62c3..209cbc9 100644 --- a/src/main/kotlin/org/jetbrains/bio/viktor/StridedVector.kt +++ b/src/main/kotlin/org/jetbrains/bio/viktor/StridedVector.kt @@ -323,11 +323,7 @@ open class StridedVector internal constructor( return Math.log(acc.result()) + offset } - infix fun logAddExp(other: StridedVector): StridedVector { - val v = copy() - v.logAddExp(other, v) - return v - } + infix fun logAddExp(other: StridedVector) = copy().apply { logAddExp(other, this) } open fun logAddExp(other: StridedVector, dst: StridedVector) { checkSize(other)