tpoisot / juliaforecologists

Introduction to Julia with examples from ecology
Other
9 stars 0 forks source link

More speed #4

Open ChrisRackauckas opened 6 years ago

ChrisRackauckas commented 6 years ago

Hey, Was just looking through this:

function glvm_3(n::Array{Float64, 1}, r::Array{Float64, 1}, A::Array{Float64, 2})
   return n .* (r - A * n)
end

This function still allocates so you'll want to use A_mul_B! to improve its speed.

tpoisot commented 6 years ago

Absolutely -- this project is on the ice for now, will resume working on it mid-2018. Thanks!