Keno / SIUnits.jl

Efficient unit-checked computation
Other
70 stars 26 forks source link

Sparse matrix multiplication does not work with SIUnits #89

Open ChrisRackauckas opened 8 years ago

ChrisRackauckas commented 8 years ago

It's trying to get a type to pick for zero, and it chooses Any and fails.

MethodError: no method matching zero(::Type{Any})
Closest candidates are:
  zero(!Matched::Type{Base.LibGit2.Oid}) at libgit2/oid.jl:88
  zero(!Matched::Type{Base.Pkg.Resolve.VersionWeights.VWPreBuildItem}) at pkg/resolve/versionweight.jl:80
  zero(!Matched::Type{Base.Pkg.Resolve.VersionWeights.VWPreBuild}) at pkg/resolve/versionweight.jl:120
  ...
 in *(::SparseMatrixCSC{Float64,Int64}, ::Array{SIUnits.SIQuantity{Float64,2,0,0,0,0,0,0,0,0},1}) at ./linalg/matmul.jl:84