Skip to content

Commit

Permalink
Fix two out of three errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Oct 30, 2023
1 parent 0461d9e commit 1e1e050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/kronecker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ struct IsometricKroneckerProduct{T<:Number,TB<:AbstractMatrix} <:
end
IsometricKroneckerProduct(ldim::Integer, B::AbstractVector) =
IsometricKroneckerProduct(ldim, reshape(B, :, 1))
IsometricKroneckerProduct(M::AbstractMatrix) = throw(
ArgumentError(
"Can not create IsometricKroneckerProduct from the provided matrix of type $(typeof(M))",
),
)

const IKP = IsometricKroneckerProduct

Expand Down
2 changes: 1 addition & 1 deletion src/priors/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function initialize_transition_matrices(
p::AbstractODEFilterPrior,
dt,
)
error("The chosen prior can not be implemented with a $fac factorization")
error("The chosen prior can not be implemented with a $FAC factorization")
end

"""
Expand Down

0 comments on commit 1e1e050

Please sign in to comment.