httk.atomistic.numeric_sites¶
The NumericSites presentation: a Sites object exposed as plain numpy numbers.
Classes¶
A plain-numpy presentation of a |
Module Contents¶
- class httk.atomistic.numeric_sites.NumericSites(sites: httk.atomistic.sites_like.SitesLike)[source]¶
A plain-numpy presentation of a
Sitesobject.Where a
Sitesholds its reduced coordinates exactly (an Nx3 rationalFracVector), aNumericSitesmirrors that interface but returns plainfloat64numpy arrays, for callers who do not need exact arithmetic and just want numpy arrays. It is len/iter/indexable over its rows, each yielded as a(3,)numpy array.The presentation is numpy-backed, so constructing a
NumericSitesrequires numpy (thehttk-atomistic[numpy]extra) and raisesImportErroreagerly when it is unavailable. The exact object is always one hop away viaexact.- property reduced_coords: httk.core.NumericVector[source]¶
The Nx3 reduced site coordinates as a
float64numpy array.
- property exact: httk.atomistic.sites.Sites[source]¶
The exact
Sitesthis presentation wraps.