Skip to content

Commit

Permalink
Merge 4dbeede into 4901122
Browse files Browse the repository at this point in the history
  • Loading branch information
kshramt committed Sep 10, 2017
2 parents 4901122 + 4dbeede commit 00289ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/generics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Basic functions

Base.eltype{T<:Real}(a::AbstractPDMat{T}) = T
Base.eltype{T<:Real}(::Type{AbstractPDMat{T}}) = T
Base.ndims(a::AbstractPDMat) = 2
Base.size(a::AbstractPDMat) = (dim(a), dim(a))
Base.size(a::AbstractPDMat, i::Integer) = 1 <= i <= 2 ? dim(a) : 1
Expand Down
1 change: 1 addition & 0 deletions src/testutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function pdtest_basics(C::AbstractPDMat, Cmat::Matrix, d::Int, verbose::Int)

_pdt(verbose, "eltype")
@test eltype(C) == eltype(Cmat)
@test eltype(typeof(C)) == eltype(typeof(Cmat))
end


Expand Down

0 comments on commit 00289ef

Please sign in to comment.