Skip to content

Commit

Permalink
Support unitful types
Browse files Browse the repository at this point in the history
  • Loading branch information
jmert committed Dec 26, 2018
1 parent 4912bec commit df1e18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/SparseArrays/src/higherorderfns.jl
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function _outer(trans::Tf, x, y) where Tf
nnzw = length(nzvalsw)

nnzC = nnzx * nnzw
Tv = typeof(one(eltype(x)) * one(eltype(w)))
Tv = typeof(oneunit(eltype(x)) * oneunit(eltype(w)))
Ti = promote_type(indtype(x), indtype(w))
colptrC = zeros(Ti, nw + 1)
rowvalC = Vector{Ti}(undef, nnzC)
Expand Down

0 comments on commit df1e18f

Please sign in to comment.