Skip to content

Commit

Permalink
Define eltype for Factorizations
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Nov 3, 2014
1 parent 59e6abb commit 604b74a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/linalg/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

abstract Factorization{T}

eltype{T}(F::Factorization{T}) = T

macro assertposdef(A, info)
:(($info)==0 ? $A : throw(PosDefException($info)))
end
Expand Down

0 comments on commit 604b74a

Please sign in to comment.