Skip to content

Commit

Permalink
Remove the Diag -> Kronecker factorization again
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Feb 5, 2024
1 parent 37e260f commit 1fa8ab5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/covariance_structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ to_factorized_matrix(::DenseCovariance, M::AbstractMatrix) = Matrix(M)
to_factorized_matrix(::IsometricKroneckerCovariance, M::AbstractMatrix) =
error("Cannot factorize Matrix")
to_factorized_matrix(::IsometricKroneckerCovariance, M::IsometricKroneckerProduct) = M
to_factorized_matrix(FAC::IsometricKroneckerCovariance, M::Diagonal{T, <:Fill{T, 1}}) where {T} =
IsometricKroneckerProduct(FAC.d, M.diag.value*Eye(FAC.q+1))

for FT in [:DenseCovariance, :IsometricKroneckerCovariance]
@eval to_factorized_matrix(FAC::$FT, M::PSDMatrix) =
Expand Down

0 comments on commit 1fa8ab5

Please sign in to comment.