wulfric.cell.get_scalar_products#

wulfric.cell.get_scalar_products(cell)[source]#

Returns pairwise scalar products of the lattice vectors.

Parameters:
cell(3, 3) array-like

Matrix of a cell, rows are interpreted as vectors.

Returns:
sp_23float

Scalar product of the vectors \(\boldsymbol{a}_2\cdot\boldsymbol{a}_3\).

sp_13float

Scalar product of the vectors \(\boldsymbol{a}_1\cdot\boldsymbol{a}_3\).

sp_12float

Scalar product of the vectors \(\boldsymbol{a}_1\cdot\boldsymbol{a}_2\).

Examples

>>> import wulfric
>>> cell = [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
>>> wulfric.cell.get_scalar_products(cell)
(0.0, 0.0, 0.0)