v0.2.0 #206

Merged
altavir merged 210 commits from dev into master 2021-02-21 16:33:25 +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( public override val features: Set<MatrixFeature> = features union hashSetOf(
*if (origin is DiagonalMatrix) arrayOf(DiagonalFeature) else emptyArray(), *if (origin is DiagonalMatrix) arrayOf(DiagonalFeature) else emptyArray(),
object : DeterminantFeature<Double>, LupDecompositionFeature<Double> { object : DeterminantFeature<Double>, LupDecompositionFeature<Double> {
private val lup by lazy { LUDecomposition(origin) } private val lup by lazy { LUDecomposition(origin) }
override val determinant: Double by lazy { lup.determinant } override val determinant: Double by lazy { lup.determinant }