Skip to content

Provide div, rem for complex integers #46674

@eschnett

Description

@eschnett

It would be nice if div and rem were supported for complex integer types, at least when the divisor is integer (and not complex). (This would be the method div(::Complex{<:Integer}, ::Integer).) In this case, the result is uniquely defined.

In the same way, div and rem could be defined for arrays, similarly to how arrays can be multiplied and divided by scalars via * and /: [1,2,3] % 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexComplex numbers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions