Skip to content

Commit 6d1caa7

Browse files
authored
Merge pull request #97 from adam-r-kowalski/ak/abstract_types
make type abstract
2 parents 00804c3 + 40a6019 commit 6d1caa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdiagmat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function PDiagMat(v::AbstractVector,inv_v::AbstractVector)
1515
PDiagMat{eltype(v),typeof(v)}(length(v), v, inv_v)
1616
end
1717

18-
PDiagMat(v::Vector) = PDiagMat(v, inv.(v))
18+
PDiagMat(v::AbstractVector) = PDiagMat(v, inv.(v))
1919

2020
### Conversion
2121
Base.convert(::Type{PDiagMat{T}}, a::PDiagMat) where {T<:Real} = PDiagMat(convert(AbstractArray{T}, a.diag))

0 commit comments

Comments
 (0)