JuliaGraphs / JuliaGraphs/MatrixNetworks.jl
Weird issue with the overloaded multiplication operation
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 110
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100