We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101ecb7 commit 62655c2Copy full SHA for 62655c2
src/symbolic_dimensions.jl
@@ -82,7 +82,7 @@ function Base.convert(::Type{Quantity{T,SymbolicDimensions{R}}}, q::Quantity{<:A
82
return Quantity(convert(T, ustrip(q)), dims)
83
end
84
function Base.convert(::Type{Q}, q::Quantity{<:Any,<:SymbolicDimensions}) where {T,D<:Dimensions,Q<:Quantity{T,D}}
85
- result = one(Q) * ustrip(q)
+ result = new_quantity(Q, ustrip(q), dim_type(Q))
86
d = dimension(q)
87
for (idx, value) in zip(getfield(d, :nzdims), getfield(d, :nzvals))
88
if !iszero(value)
0 commit comments