Skip to content

@vectorize_2arg should use broadcast #4363

@stevengj

Description

@stevengj

It seems like the @vectorize_2arg macro should really be broadcasting.

e.g. I expected this to work and be equivalent to broadcast(atan2, y, x):

y = linspace(-1,1,50)
x = y'
theta = atan2(y, x)

but it gives ERROR: argument dimensions must match.

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