Skip to content

Tutorial 1 fails #101

@thowell

Description

@thowell

Hi!

The first example from the readme fails for me when using the SVector macro. I'm on Julia version 1.3.1 and haven't tried 1.4.0.

Something like this works:

function g(x) # out-of-place
global fcalls += 1
len_x = length(x)
SVector{len_x}([handleleft(x,i) - 2*x[i] + handleright(x,i) for i in 1:len_x])
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions