I am trying to compute the following gaussian integral over all possible real matrices $J$:
$$I=\int \exp\left\{-\frac{N}{2}\text{Tr}\left[\mathbf{J}\mathbf{A}\;\mathbf{J}^T+2\mathbf{BJ}-\gamma \mathbf{JJ} \right]\right\}\mathrm{d}\mathbf{J}$$
Where $\mathbf{A}$ and $\mathbf{B}$ are Hermitian matrices.
When $\gamma=0$ I can complete the square and integrate this Gaussian integral without any problem (assuming I know the eigenvalues and determinant of $\mathbf{A}$):
$$\mathbf{J}\mathbf{A}\;\mathbf{J}^T+2\mathbf{BJ}=\left(\mathbf{J}^T-\mathbf{B}\mathbf{A}^{-1}\right)\mathbf{A}\left(\mathbf{J}-\mathbf{A}^{-1}\mathbf{B}\right)-\mathbf{B}\mathbf{A}^{-1}\mathbf{B}$$
However for general $\gamma\in \mathbb{R}$ I cannot seem to know how to evaluate this integral by completing the square: $\mathbf{J}^T\mathbf{A}\;\mathbf{J}+2\mathbf{BJ}-\gamma \mathbf{JJ}$
$\mathbf{J}$ is real but not symmetric. when $\gamma=0$ this integral converges so I do not see any reason why it would not be generalised to general $\gamma$ with an appropriate $\mathbf{A}$.
Any remark or advice is always appreciated. Thank you.
Edit : A different way to express the integral $I$ is the following:
$$I=\int \left(\prod_{ij}\mathrm{d}J_{ij}\right)\exp\left\{-\frac{N}{2} \sum_{i, j, k} J_{k i} A_{i j} J_{k j}+N\sum_{k, j} B_{k j} J_{k j}+\frac{N\gamma}{2}\sum_{ij}J_{ij}J_{ji}\right\}$$
Assuming I already know the eigenvalues of $\mathbf{A}$ and thus $\det(\mathbf{A})$, how can I compute the integral $I$?
In principle you could write the $J$ matrix as a $N\times N$ long "super"vector and then you would have a "simple" quadratic form $J_{ij} \Gamma^{ijkl} J_{kl}$ where all the transposes etc are encoded in the $\Gamma$ super matrix. By redefining an index pair ${ij}=\alpha$ you could put the $\Gamma$ tensor in a "super" matrix form and find the relevant determinant etc. It looks daunting, but maybe there are some shortcuts, e.g. there is a super matrix $\mathcal T$ that transforms any "super"vector into it's transpose.