Skip to content

arith_binary_func() wrongly casts number arguments #18

Description

@FilipeMaia

If the lhs is a number and the rhs an array (or vice-versa) the lhs will be casted to the type of the rhs. This is inconsistent with the C++ API (there's no C API for such a case).

The array created out of the lhs should have the arrayfire types that matches the type of the lhs, or raise an error is no such type exists.

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