From 1e1e050c70b6554edbfc86f8f7a00a7dcef9977c Mon Sep 17 00:00:00 2001 From: Nathanael Bosch Date: Mon, 30 Oct 2023 11:23:31 +0100 Subject: [PATCH] Fix two out of three errors --- src/kronecker.jl | 5 +++++ src/priors/common.jl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kronecker.jl b/src/kronecker.jl index d95b5ede9..92ece4e9e 100644 --- a/src/kronecker.jl +++ b/src/kronecker.jl @@ -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 diff --git a/src/priors/common.jl b/src/priors/common.jl index a4cad3f70..3d4861b40 100644 --- a/src/priors/common.jl +++ b/src/priors/common.jl @@ -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 """