pyextal.metricΒΆ

Metric Tensor Calculations.

This module provides functions for performing crystallographic calculations using a Gram matrix (metric tensor). These functions are essential for working with crystal lattices where the basis vectors are not necessarily orthogonal.

Functions

angle(gram, v1, v2)

Calculates the angle between two vectors in a space defined by a Gram matrix.

scale(gram, v)

Calculates the magnitude (norm) of a vector using a Gram matrix.

sumx(gram, v1, v2)

Calculates the inner product of two vectors using a Gram matrix.

volume(gram)

Calculates the volume of the unit cell from its Gram matrix.