From 927aa589ad4277d8a95aea2c402128a8183e59e7 Mon Sep 17 00:00:00 2001 From: Commander Tvis Date: Thu, 11 Jun 2020 08:49:38 +0700 Subject: [PATCH] Add missing override modifiers --- .../scientifik/kmath/expressions/asm/AsmExpressionSpaces.kt | 2 +- .../scientifik/kmath/expressions/FunctionalExpressions.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kmath-asm/src/main/kotlin/scientifik/kmath/expressions/asm/AsmExpressionSpaces.kt b/kmath-asm/src/main/kotlin/scientifik/kmath/expressions/asm/AsmExpressionSpaces.kt index 24260b871..78f6ee351 100644 --- a/kmath-asm/src/main/kotlin/scientifik/kmath/expressions/asm/AsmExpressionSpaces.kt +++ b/kmath-asm/src/main/kotlin/scientifik/kmath/expressions/asm/AsmExpressionSpaces.kt @@ -47,7 +47,7 @@ open class AsmExpressionRing(private val ring: Ring) : AsmExpressionSpace< override fun binaryOperation(operation: String, left: AsmExpression, right: AsmExpression): AsmExpression = AsmBinaryOperation(algebra, operation, left, right) - fun number(value: Number): AsmExpression = const(ring { one * value }) + override fun number(value: Number): AsmExpression = const(ring { one * value }) override fun multiply(a: AsmExpression, b: AsmExpression): AsmExpression = AsmBinaryOperation(space, RingOperations.TIMES_OPERATION, a, b) diff --git a/kmath-core/src/commonMain/kotlin/scientifik/kmath/expressions/FunctionalExpressions.kt b/kmath-core/src/commonMain/kotlin/scientifik/kmath/expressions/FunctionalExpressions.kt index d20a5dbbf..ce9b4756c 100644 --- a/kmath-core/src/commonMain/kotlin/scientifik/kmath/expressions/FunctionalExpressions.kt +++ b/kmath-core/src/commonMain/kotlin/scientifik/kmath/expressions/FunctionalExpressions.kt @@ -75,7 +75,7 @@ open class FunctionalExpressionRing(val ring: Ring) : FunctionalExpression override fun binaryOperation(operation: String, left: Expression, right: Expression): Expression = FunctionalBinaryOperation(algebra, operation, left, right) - fun number(value: Number): Expression = const(ring { one * value }) + override fun number(value: Number): Expression = const(ring { one * value }) override fun multiply(a: Expression, b: Expression): Expression = FunctionalBinaryOperation(space, RingOperations.TIMES_OPERATION, a, b)