Add unstable marker to eigenvalue decomposition

This commit is contained in:
Alexander Nozik 2024-08-21 12:06:00 +03:00
parent 6c1a5e62bf
commit 222cdc2c14
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import space.kscience.attributes.PolymorphicAttribute
import space.kscience.attributes.safeTypeOf import space.kscience.attributes.safeTypeOf
import space.kscience.kmath.UnstableKMathAPI import space.kscience.kmath.UnstableKMathAPI
@UnstableKMathAPI
public interface EigenDecomposition<T> { public interface EigenDecomposition<T> {
/** /**
* Eigenvector matrix. * Eigenvector matrix.
@ -21,6 +22,7 @@ public interface EigenDecomposition<T> {
public val d: Matrix<T> public val d: Matrix<T>
} }
@UnstableKMathAPI
public class EigenDecompositionAttribute<T> : public class EigenDecompositionAttribute<T> :
PolymorphicAttribute<EigenDecomposition<T>>(safeTypeOf()), PolymorphicAttribute<EigenDecomposition<T>>(safeTypeOf()),
MatrixAttribute<EigenDecomposition<T>> MatrixAttribute<EigenDecomposition<T>>

View File

@ -474,6 +474,7 @@ public object EjmlLinearSpaceFDRM : EjmlLinearSpace<Float, Float32Field, FMatrix
override fun Float.times(v: Point<Float>): EjmlFloatVector<FMatrixRMaj> = v * this override fun Float.times(v: Point<Float>): EjmlFloatVector<FMatrixRMaj> = v * this
@OptIn(UnstableKMathAPI::class)
override fun <V, A : StructureAttribute<V>> computeAttribute(structure: Structure2D<Float32>, attribute: A): V? { override fun <V, A : StructureAttribute<V>> computeAttribute(structure: Structure2D<Float32>, attribute: A): V? {
val origin = structure.toEjml().origin val origin = structure.toEjml().origin