netket.jax.logdet_cmplx

Contents

netket.jax.logdet_cmplx#

netket.jax.logdet_cmplx(A)[source]#

Log-determinant, with automatic upconversion to a complex output dtype in order to encode the sign.

This is a thin wrapper on top of {func}`jax.numpy.linalg.slogdet`. The mathematical formula is:

\[\log(|A |)\]
Parameters:

A (Array) – A square matrix, or batch of matrices. The shape should be (…, N, N)

Return type:

Array

Returns:

A scalar or batch of scalars with the smallest complex dtype computed from the input dtype. If the input has shape (…, N, N) the output has shape (…)