Skip to content

Commit

Permalink
Fix bug in dot on FermiOccupiedModes (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsch authored Feb 20, 2023
1 parent a04c014 commit ca4eded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BitStringAddresses/bitstring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,6 @@ end
# Default implementation uses iterating over occupied modes.
function LinearAlgebra.dot(
occ_a::FermiOccupiedModes{<:Any,S}, occ_b::FermiOccupiedModes{<:Any,S}
) where {S}
) where {S<:BitString}
return count_ones(occ_a.storage & occ_b.storage)
end

0 comments on commit ca4eded

Please sign in to comment.