Support of new matrix decomposition features for CMMatrix #189
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user