Skip to content

Commit

Permalink
Dperecate Matrix from AbstractLattice
Browse files Browse the repository at this point in the history
often causes ambiguity
  • Loading branch information
singularitti committed Oct 7, 2023
1 parent 5d9ae36 commit e6ef9d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/lattice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,3 @@ Base.:+(x::Number, lattice::Lattice) = lattice + x
Base.:-(lattice::Lattice) = -one(eltype(lattice)) * lattice
Base.:-(lattice::Lattice, x::Number) = Lattice(parent(lattice) .- x)
Base.:-(x::Number, lattice::Lattice) = -lattice + x

(::Type{T})(lattice::Lattice) where {T<:AbstractMatrix} = T(parent(lattice))
2 changes: 0 additions & 2 deletions src/reciprocal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ Base.:/(lattice::ReciprocalLattice, x::Number) = ReciprocalLattice(parent(lattic
Base.:+(lattice::ReciprocalLattice) = lattice

Base.:-(lattice::ReciprocalLattice) = -one(eltype(lattice)) * lattice

(::Type{T})(lattice::ReciprocalLattice) where {T<:AbstractMatrix} = T(parent(lattice))

0 comments on commit e6ef9d2

Please sign in to comment.