Skip to content

Commit

Permalink
Merge pull request #41 from karbarcca/patch-1
Browse files Browse the repository at this point in the history
Changes `Abs2` to `Abs2Fun`
  • Loading branch information
andreasnoack committed Dec 3, 2013
2 parents 7c2afc9 + 7c057bb commit 4bb691f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glmtools.jl
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ type BernoulliVar <: UnaryFunctor end
evaluate{T<:FP}(::BernoulliVar,x::T) = x * (one(T) - x)

var!{T<:FP}(::Binomial,v::Vector{T},mu::Vector{T}) = map!(BernoulliVar(),v,mu)
var!{T<:FP}(::Gamma,v::Vector{T},mu::Vector{T}) = map!(Abs2(),v,mu)
var!{T<:FP}(::Gamma,v::Vector{T},mu::Vector{T}) = map!(Abs2Fun(),v,mu)
var!{T<:FP}(::Normal,v::Vector{T},mu::Vector{T}) = fill!(v,one(T))
var!{T<:FP}(::Poisson,v::Vector{T},mu::Vector{T}) = copy!(v,mu)

0 comments on commit 4bb691f

Please sign in to comment.