Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lattices/latticepoints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
Base.:+(i::Int, j::LatticePoint{1}) = j + i

function Base.:-(i::LatticePoint{N}, j::NTuple{N,Int}) where {N}
return LatticePoint(i.coordinates .+ j, i.lattice)
return LatticePoint(i.coordinates .- j, i.lattice)
end
Base.:-(i::LatticePoint{1}, j::Int) = LatticePoint(i.coordinates .+ j, i.lattice)
Base.:-(i::LatticePoint{1}, j::Int) = LatticePoint(i.coordinates .- j, i.lattice)

Check warning on line 57 in src/lattices/latticepoints.jl

View check run for this annotation

Codecov / codecov/patch

src/lattices/latticepoints.jl#L57

Added line #L57 was not covered by tests
function Base.:-(i::NTuple{N,Int}, j::LatticePoint{N}) where {N}
return LatticePoint(i .- j.coordinates, j.lattice)
end
Expand Down
Loading