Skip to content

Using "end" creatively #151

@ghost

Description

The following replacement of "2" with "end" causes a crash:

julia> z == z[[(1:2)[:],[3]],:]
true true true true
true true true true
true true true true

julia> z == z[[(1:(end-1))[:],[3]],:]
end not defined
in run_repl, /home/bezanson/src/julia/j/client.j:21
in _start, /home/bezanson/src/julia/j/client.j:156

In light of the previous issue on the difficulties of range concatenation, cannot run this piece of MATLAB code for the heat equation:

f = f + (alpha * k/h^2)_(-4_f + f([2:end,1],:) + f([end,1:(end-1)],:) + f(:,[2:end,1]) + f(:,[end,1:(end-1)]));

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions