From 222cdc2c141f0dd92fd97fdadff66444d654f6f2 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Wed, 21 Aug 2024 12:06:00 +0300 Subject: [PATCH] Add unstable marker to eigenvalue decomposition --- .../kotlin/space/kscience/kmath/linear/EigenDecomposition.kt | 2 ++ .../jvmMain/kotlin/space/kscience/kmath/ejml/implementations.kt | 1 + 2 files changed, 3 insertions(+) diff --git a/kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/EigenDecomposition.kt b/kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/EigenDecomposition.kt index dcb97d24a..ee91c7d0f 100644 --- a/kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/EigenDecomposition.kt +++ b/kmath-core/src/commonMain/kotlin/space/kscience/kmath/linear/EigenDecomposition.kt @@ -9,6 +9,7 @@ import space.kscience.attributes.PolymorphicAttribute import space.kscience.attributes.safeTypeOf import space.kscience.kmath.UnstableKMathAPI +@UnstableKMathAPI public interface EigenDecomposition { /** * Eigenvector matrix. @@ -21,6 +22,7 @@ public interface EigenDecomposition { public val d: Matrix } +@UnstableKMathAPI public class EigenDecompositionAttribute : PolymorphicAttribute>(safeTypeOf()), MatrixAttribute> diff --git a/kmath-ejml/src/jvmMain/kotlin/space/kscience/kmath/ejml/implementations.kt b/kmath-ejml/src/jvmMain/kotlin/space/kscience/kmath/ejml/implementations.kt index 8588a7cda..f831f495f 100644 --- a/kmath-ejml/src/jvmMain/kotlin/space/kscience/kmath/ejml/implementations.kt +++ b/kmath-ejml/src/jvmMain/kotlin/space/kscience/kmath/ejml/implementations.kt @@ -474,6 +474,7 @@ public object EjmlLinearSpaceFDRM : EjmlLinearSpace): EjmlFloatVector = v * this + @OptIn(UnstableKMathAPI::class) override fun > computeAttribute(structure: Structure2D, attribute: A): V? { val origin = structure.toEjml().origin