unfold_s4_to_s1¶
- unfold_s4_to_s1(eri, *, validate=True)[source]¶
Unfolds an 4-fold symmetric tensor to 1-fold symmetries (4-dimensional).
- Parameters:
eri (Tensor | ndarray | SparseArray) – the 2-dimensional tensor to unfold.
validate (bool) – when set to
False, the requirements oferiare not validated.
- Returns:
A 1-fold symmetric tensor.
- Raises:
ValueError – if
eriis not 2-dimensional.- Return type: