You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Reduced allocations in pfaffian(::AbstractMatrix{<:Complex})
* Added logabspfaffian(::AbstractMatrix{<:Complex})
I realised that the algorithm used to compute
`pfaffian(::AbstractMatrix{<:Complex})` can be used to compute
the `logabspfaffian` with little modifications and decided to
add that too for completeness sake
* Added logabspfaffian(::AbstractMatrix{<:Complex})
I realised that the algorithm used to compute
`pfaffian(::AbstractMatrix{<:Complex})` can be used to compute
the `logabspfaffian` with little modifications and decided to
add that too for completeness sake
* Update src/pfaffian.jl
Co-authored-by: Steven G. Johnson <[email protected]>
* Revert "Added logabspfaffian(::AbstractMatrix{<:Complex})"
This reverts commit 0b49126.
* Removed superfluous @inbounds
* Added argmaxabs() for compatibility with julia 1.6
* Merged orign/main in and added argmaxabs() to _logabspfaffian()
---------
Co-authored-by: Steven G. Johnson <[email protected]>
(Note that the Pfaffian is *always zero* for any *odd* size skew-symmetric matrix.)
51
51
52
-
Since the computation of the pfaffian can easily overflow/underflow the maximum/minimum representable floating-point value, we also provide a function `logabspfaffian`for real skew-symmetric matrices (along with an in-place variant `logabspfaffian!`) that returns a tuple `(logpf, sign)` such
52
+
Since the computation of the pfaffian can easily overflow/underflow the maximum/minimum representable floating-point value, we also provide a function `logabspfaffian` (along with an in-place variant `logabspfaffian!`) that returns a tuple `(logpf, sign)` such
53
53
that the Pfaffian is `sign * exp(logpf)`. (This is similar to the [`logabsdet`](https://docs.julialang.org/en/v1/stdlib/LinearAlgebra/#LinearAlgebra.logabsdet) function in Julia's `LinearAlgebra` library to compute the log of the determinant.)
0 commit comments