Skip to content

Commit

Permalink
fix JET for 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Jan 30, 2025
1 parent 67222d2 commit 449094d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -925,29 +925,29 @@ function choose_matrix_format(A::ℒ.Diagonal{S, Vector{S}};
end


function choose_matrix_format(A::ℒ.Adjoint{S, <: DenseMatrix{S}};
function choose_matrix_format(A::ℒ.Adjoint{S, M};
density_threshold::Float64 = .1,
min_length::Int = 1000,
tol::R = 1e-14,
multithreaded::Bool = true)::Union{Matrix{S}, SparseMatrixCSC{S, Int}, ThreadedSparseArrays.ThreadedSparseMatrixCSC{S, Int, SparseMatrixCSC{S, Int}}} where {R <: AbstractFloat, S <: Real}
multithreaded::Bool = true)::Union{Matrix{S}, SparseMatrixCSC{S, Int}, ThreadedSparseArrays.ThreadedSparseMatrixCSC{S, Int, SparseMatrixCSC{S, Int}}} where {R <: AbstractFloat, S <: Real, M <: AbstractMatrix{S}}
choose_matrix_format(convert(typeof(transpose(A)),A),
density_threshold = density_threshold,
min_length = min_length,
multithreaded = multithreaded,
tol = tol)
end

function choose_matrix_format(A::ℒ.Adjoint{S, <: AbstractSparseMatrix{S}};
density_threshold::Float64 = .1,
min_length::Int = 1000,
tol::R = 1e-14,
multithreaded::Bool = true)::Union{Matrix{S}, SparseMatrixCSC{S, Int}, ThreadedSparseArrays.ThreadedSparseMatrixCSC{S, Int, SparseMatrixCSC{S, Int}}} where {R <: AbstractFloat, S <: Real}
choose_matrix_format(convert(typeof(transpose(A)),A),
density_threshold = density_threshold,
min_length = min_length,
multithreaded = multithreaded,
tol = tol)
end
# function choose_matrix_format(A::ℒ.Adjoint{S, <: AbstractSparseMatrix{S}};
# density_threshold::Float64 = .1,
# min_length::Int = 1000,
# tol::R = 1e-14,
# multithreaded::Bool = true)::Union{Matrix{S}, SparseMatrixCSC{S, Int}, ThreadedSparseArrays.ThreadedSparseMatrixCSC{S, Int, SparseMatrixCSC{S, Int}}} where {R <: AbstractFloat, S <: Real}
# choose_matrix_format(convert(typeof(transpose(A)),A),
# density_threshold = density_threshold,
# min_length = min_length,
# multithreaded = multithreaded,
# tol = tol)
# end

function choose_matrix_format(A::DenseMatrix{S};
density_threshold::Float64 = .1,
Expand Down

0 comments on commit 449094d

Please sign in to comment.