httk.atomistic.models.cell.plain¶
Backend wrapping a raw 3x3 cell basis (the matrix of cell vectors).
Classes¶
Backend for a cell backed by a raw 3x3 list or tuple of numbers (or any 3x3 vector-like). |
Module Contents¶
- class httk.atomistic.models.cell.plain.PlainCell(obj, **hints)[source]¶
Bases:
httk.atomistic.models.cell.backend.CellBackendBackend for a cell backed by a raw 3x3 list or tuple of numbers (or any 3x3 vector-like).
The native representation is preserved verbatim (one cell vector per row); the exact
SurdVectorbasisis built lazily and cached. This representation carries no separate length factor, soscaleis the exact1andunscaled_basis == basis.unwrapreturns the original raw object.- Parameters:
obj (Any) – The raw 3x3 basis representation.
**hints (Any) – Backend-selection hints.
- property basis: httk.core.SurdVector[source]¶
Return the raw basis in the canonical representation.
- Returns:
The cell vectors.
- Return type:
- property scale: httk.core.SurdScalar[source]¶
Return the unit scale factor.
- Returns:
The factor applied to
unscaled_basis.- Return type:
- property unscaled_basis: httk.core.SurdVector[source]¶
Return the basis before scaling.
- Returns:
The cell vectors.
- Return type: