Tensor#

spgrep.tensor.get_symmetry_adapted_tensors(rep, rotations, rank, real=False, atol=1e-08)[source]#

Calculate symmetry-adapted tensors with rank=``rank``.

Parameters:
  • rep (array, (order, dim, dim)) – Representation matrices

  • rotations (array, (order, 3, 3))

  • rank (int) – Rank of returned tensor

  • real (bool)

Returns:

tensors

Return type:

list of symmetry-adapted rank-tensor with (dim, …, dim)

spgrep.tensor.apply_intrinsic_symmetry(tensors, atol=1e-06)[source]#

Apply symmetric group on tensors.

Note

Current implementation may return wrong number of symmetrized tensors for higher rank…