DataFlow.jl icon indicating copy to clipboard operation
DataFlow.jl copied to clipboard

The example doesn't run in Julia 0.6

Open xiaodaigh opened this issue 8 years ago • 0 comments

I tried the following code in Julia 0.6 and it gave me an error. So I tried to checkout release-0.2 and rerun and it still gives me an error.

using DataFlow
@flow function var(xs)
  mean = sum(xs)/length(xs)
  meansqr = sumabs2(xs)/length(xs)
  meansqr - mean^2
end

xs = DataFlow.cse(var.output)
DataFlow.IVertex{Any}
chamois = length(xs)
sumabs2(xs) / chamois - (sum(xs) / chamois) ^ 2

xiaodaigh avatar Sep 28 '17 10:09 xiaodaigh