Support of new matrix decomposition features for CMMatrix #189

Merged
CommanderTvis merged 8 commits from commandertvis/cm-decompositions into dev 2021-01-28 19:58:08 +03:00
Showing only changes of commit 348f114bb6 - Show all commits

View File

@ -13,6 +13,7 @@ public class CMMatrix(public val origin: RealMatrix, features: Set<MatrixFeature
public override val features: Set<MatrixFeature> = features union hashSetOf(
*if (origin is DiagonalMatrix) arrayOf(DiagonalFeature) else emptyArray(),
object : DeterminantFeature<Double>, LupDecompositionFeature<Double> {
private val lup by lazy { LUDecomposition(origin) }
override val determinant: Double by lazy { lup.determinant }