Skip to content

Commit

Permalink
Added documentation for new lattice methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Nov 30, 2023
1 parent f7a007f commit d4d03a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Added
- `eachvertex` iterator for the vertices of the parallelepiped representation of a unit cell.
- `SpinBivector` type representing spin direction in a dimension-agnostic way.
- `dual(b::LatticeBasis)` returns the dual lattice associated with `b`.
- `dualbasis(x)` returns the dual lattice basis vectors associated with `x`.

### Changed
- The Types section of the documentation has been split up into separate sections for lattice
Expand All @@ -18,6 +20,7 @@ basis vectors, atoms and crystal representations, and data grids.
### Fixed
- The default definition of `Electrum.DataSpace(x)` is now `DataSpace(typeof(x))`, not
`DataSpace(typeof(basis(x)))`.
- `inv(b::LatticeBasis)` returns the matrix inverse of `b`, not the dual lattice basis.

## [0.1.16]: 2023-11-16

Expand Down
3 changes: 3 additions & 0 deletions docs/src/api/lattices.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Electrum.AbstractBasis
```@docs
Electrum.eachvertex
Electrum.basis
Base.inv(::Electrum.LatticeBasis)
Electrum.dual
Electrum.dualbasis
Electrum.lengths(::Electrum.LatticeBasis)
Electrum.volume(::Electrum.LatticeBasis)
Electrum.angles_cos
Expand Down

0 comments on commit d4d03a1

Please sign in to comment.