Skip to content

Commit d181a88

Browse files
njzjz-botJinzhe Zeng
authored andcommitted
docs: add symmetrization step to polarizability formula
The full matrix fitting symmetrizes the network output before use: P = (P_raw + P_raw^T) / 2, ensuring a symmetric polarizability tensor.
1 parent 806fea2 commit d181a88

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

deepmd/dpmodel/fitting/polarizability_fitting.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ class PolarFitting(GeneralFitting):
6060
.. math::
6161
\boldsymbol{\alpha}^i = \mathbf{R}^{i,T} \cdot \mathbf{P}^i \cdot \mathbf{R}^i,
6262
63-
where :math:`\mathbf{P}^i \in \mathbb{R}^{m_1 \times m_1}` is the full matrix predicted
64-
by the fitting network.
63+
where :math:`\mathbf{P}^i = \frac{1}{2}(\hat{\mathbf{P}}^i + \hat{\mathbf{P}}^{i,T}) \in \mathbb{R}^{m_1 \times m_1}`
64+
is the symmetrized output of the fitting network (:math:`\hat{\mathbf{P}}^i` being the raw output),
65+
ensuring :math:`\boldsymbol{\alpha}^i` is a symmetric tensor.
6566
6667
The fitting network is:
6768

0 commit comments

Comments
 (0)