Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
vandenman committed Oct 20, 2023
1 parent ba9a55c commit 4fee327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psd_mat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct PSDMat{T<:Real,S<:AbstractMatrix} <: AbstractPDMat{T}
end

function PSDMat(mat::AbstractMatrix, chol::CholType{T,S}) where {T,S}
d = size(mat, 1)
d = LinearAlgebra.checksquare(mat)
size(chol, 1) == d ||
throw(DimensionMismatch("Dimensions of mat and chol are inconsistent."))
PSDMat{T, S}(d, convert(S, mat), chol)
Expand Down

0 comments on commit 4fee327

Please sign in to comment.