Skip to content

Commit cffb08a

Browse files
authored
Fix unqualified extension of Base.Matrix function (#329)
1 parent 938b912 commit cffb08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dispatch.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ end
581581

582582
# Needed for Julia v1.1 only. If `parent(A)` is for instance `Diagonal`, the
583583
# `eltype` of `B` might be different form the `eltype` of `A`.
584-
function Matrix(A::LinearAlgebra.Symmetric{<:AbstractMutable})
584+
function Base.Matrix(A::LinearAlgebra.Symmetric{<:AbstractMutable})
585585
B = LinearAlgebra.copytri!(convert(Matrix, copy(A.data)), A.uplo)
586586
for i in axes(A, 1)
587587
# `B[i, i]` is used instead of `A[i, i]` on Julia v1.1 hence the need
@@ -594,7 +594,7 @@ function Matrix(A::LinearAlgebra.Symmetric{<:AbstractMutable})
594594
return B
595595
end
596596

597-
function Matrix(A::LinearAlgebra.Hermitian{<:AbstractMutable})
597+
function Base.Matrix(A::LinearAlgebra.Hermitian{<:AbstractMutable})
598598
B = LinearAlgebra.copytri!(convert(Matrix, copy(A.data)), A.uplo, true)
599599
for i in axes(A, 1)
600600
# `B[i, i]` is used instead of `A[i, i]` on Julia v1.1 hence the need

0 commit comments

Comments
 (0)