Weird issue with the overloaded multiplication operation

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

Read MatrixNetworks/src/diffusions.jl around lines 296 and 325 and Compose/src/measure.jl around lines 9-10. First try reproducing the load warnings on a current environment, then determine whether the reported method ambiguities still occur. Done means the packages load without these multiplication warnings, with relevant tests or a reproduction confirming the result.

Written by the indexing model from the issue text.

Description

I think compose gives a weird error with the current master branch.

using Compose
using MatrixNetworks
WARNING: New definition 
    *(MatrixNetworks.SparseMatrixStochasticMult, Any) at /home/dgleich/.julia/v0.4/MatrixNetworks/src/diffusions.jl:296
is ambiguous with: 
    *(#T<:Any, Type{Measures.Length{:cx, T<:Any}}) at /home/dgleich/.julia/v0.4/Compose/src/measure.jl:9.
To fix, define 
    *(MatrixNetworks.SparseMatrixStochasticMult, Type{Measures.Length{:cx, T<:Any}})
before the new definition.
WARNING: New definition 
    *(MatrixNetworks.SparseMatrixStochasticMult, Any) at /home/dgleich/.julia/v0.4/MatrixNetworks/src/diffusions.jl:296
is ambiguous with: 
    *(#T<:Any, Type{Measures.Length{:cy, T<:Any}}) at /home/dgleich/.julia/v0.4/Compose/src/measure.jl:10.
To fix, define 
    *(MatrixNetworks.SparseMatrixStochasticMult, Type{Measures.Length{:cy, T<:Any}})
before the new definition.
WARNING: New definition 
    *(MatrixNetworks.MatrixNetworkStochasticMult, Any) at /home/dgleich/.julia/v0.4/MatrixNetworks/src/diffusions.jl:325
is ambiguous with: 
    *(#T<:Any, Type{Measures.Length{:cx, T<:Any}}) at /home/dgleich/.julia/v0.4/Compose/src/measure.jl:9.
To fix, define 
    *(MatrixNetworks.MatrixNetworkStochasticMult, Type{Measures.Length{:cx, T<:Any}})
before the new definition.
WARNING: New definition 
    *(MatrixNetworks.MatrixNetworkStochasticMult, Any) at /home/dgleich/.julia/v0.4/MatrixNetworks/src/diffusions.jl:325
is ambiguous with: 
    *(#T<:Any, Type{Measures.Length{:cy, T<:Any}}) at /home/dgleich/.julia/v0.4/Compose/src/measure.jl:10.
To fix, define 
    *(MatrixNetworks.MatrixNetworkStochasticMult, Type{Measures.Length{:cy, T<:Any}})
before the new definition.
Dominant language
Julia
Stars
110
Forks
25
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaGraphs/MatrixNetworks.jl

All issues in JuliaGraphs/MatrixNetworks.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.