Skip to content

Commit

Permalink
Bump version of Compat and use unqualfied name
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Mar 20, 2018
1 parent 58f05b1 commit 164e13d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
@@ -1,2 +1,2 @@
julia 0.7.0-DEV.3449
Compat 0.33
Compat 0.61.0
4 changes: 2 additions & 2 deletions src/generics.jl
Expand Up @@ -83,7 +83,7 @@ the quadratic form is applied column-wise.
"""
function quad(a::AbstractPDMat{T}, x::StridedMatrix{S}) where {T<:Real, S<:Real}
@check_argdims dim(a) == size(x, 1)
quad!(Array{promote_type(T, S)}(Compat.undef, size(x,2)), a, x)
quad!(Array{promote_type(T, S)}(undef, size(x,2)), a, x)
end


Expand All @@ -99,5 +99,5 @@ the quadratic form is applied column-wise.
"""
function invquad(a::AbstractPDMat{T}, x::StridedMatrix{S}) where {T<:Real, S<:Real}
@check_argdims dim(a) == size(x, 1)
invquad!(Array{promote_type(T, S)}(Compat.undef, size(x,2)), a, x)
invquad!(Array{promote_type(T, S)}(undef, size(x,2)), a, x)
end

0 comments on commit 164e13d

Please sign in to comment.