httk.atomistic.numeric_structure¶
The NumericStructure presentation: a Structure exposed as plain numpy numbers.
Classes¶
A plain-numpy presentation of a |
Module Contents¶
- class httk.atomistic.numeric_structure.NumericStructure(structure: httk.atomistic.structure_like.StructureLike)[source]¶
A plain-numpy presentation of a
Structure.Where a
Structureholds its geometry exactly (a surdcellbasis, rational reduced coordinates, an exact Cartesian frame), aNumericStructuremirrors that interface but returns plain numpy numbers: itscellis aNumericCell, itssitesaNumericSites, andcartesian_sites()afloat64numpy array. Thespecies/species_at_sitesare passed through unchanged (they are already plain data). It is for callers who do not need exact arithmetic and just want numpy arrays.The presentation is numpy-backed, so constructing a
NumericStructurerequires numpy (thehttk-atomistic[numpy]extra) and raisesImportErroreagerly when it is unavailable. The exact object is always one hop away viaexact.- property cell: httk.atomistic.numeric_cell.NumericCell[source]¶
The cell as a
NumericCell.
- property sites: httk.atomistic.numeric_sites.NumericSites[source]¶
The sites as a
NumericSites.
- property species: tuple[httk.atomistic.species.Species, Ellipsis][source]¶
The distinct species, passed through unchanged.
- property species_at_sites: tuple[str, Ellipsis][source]¶
The species name occupying each site, passed through unchanged.
- cartesian_sites() httk.core.NumericVector[source]¶
The Cartesian site positions as an
(N, 3)float64numpy array.
- property exact: httk.atomistic.structure.Structure[source]¶
The exact
Structurethis presentation wraps.