Skip to content

Missing matrix division dispatches #502

Closed
@pao

Description

@pao

There's no dispatch for matrix division between Int32 and Float64, and probably others.

julia> [1 0 0; 0 1 0; 0 0 1]\[1.;2;4]
no method /(Array{Float64,1},Array{Int32,2})
 in method_missing at /home/patrick/julia/j/base.j:58
 in \ at /home/patrick/julia/j/operators.j:59

julia> [1. 0 0; 0 1 0; 0 0 1]\[1;2;4]
no method /(Array{Int32,1},Array{Float64,2})
 in method_missing at /home/patrick/julia/j/base.j:58
 in \ at /home/patrick/julia/j/operators.j:59

After watching Jeff's presentation, I was feeling confident I could figure out how to fix it. Unfortunately my grep-fu is failing me and I can't track down where AbstractMatrix/AbstractMatrix is defined. Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions