Symmetric positive definite matrices of fixed determinant
Manifolds.SPDFixedDeterminant
โ TypeSPDFixedDeterminant{N,D} <: AbstractDecoratorManifold{โ}
The manifold of symmetric positive definite matrices of fixed determinant $d > 0$, i.e.
\[\mathcal P_d(n) = \bigl\{ p โ โ^{n ร n} \ \big|\ a^\mathrm{T}pa > 0 \text{ for all } a โ โ^{n}\backslash\{0\} \text{ and } \det(p) = d \bigr\}.\]
This manifold is modelled as a submanifold of SymmetricPositiveDefinite
(n)
.
These matrices are sometimes also called isochoric, which refers to the interpretation of the matrix representing an ellipsoid. All ellipsoids that represent points on this manifold have the same volume.
The tangent space is modelled the same as for SymmetricPositiveDefinite
(n)
and consists of all symmetric matrices with zero trace
\[ T_p\mathcal P_d(n) = \bigl\{ X \in \mathbb R^{nรn} \big|\ X=X^\mathrm{T} \text{ and } \operatorname{tr}(p) = 0 \bigr\},\]
since for a constant determinant we require that 0 = D\det(p)[Z] = \det(p)\operatorname{tr}(p^{-1}Z)
for all tangent vectors $Z$. Additionally we store the tangent vectors as X=p^{-1}Z
, i.e. symmetric matrices.
Constructor
SPDFixedDeterminant(n::Int, d::Real=1.0)
generates the manifold $\mathcal P_d(n) \subset \mathcal P(n)$ of determinant $d$, which defaults to 1.
This manifold can is a submanifold of the symmetric positive definite matrices and hence inherits most properties therefrom.
The differences are the functions
ManifoldsBase.check_point
โ Methodcheck_point(M::SPDFixedDeterminant{n}, p; kwargs...)
Check whether p
is a valid manifold point on the SPDFixedDeterminant
(n,d)
M
, i.e. whether p
is a SymmetricPositiveDefinite
matrix of size (n, n)
with determinant $\det(p) =$M.d
.
The tolerance for the determinant of p
can be set using kwargs...
.
ManifoldsBase.check_vector
โ Methodcheck_vector(M::SPDFixedDeterminant, p, X; kwargs... )
Check whether X
is a tangent vector to manifold point p
on the SPDFixedDeterminant
M
, i.e. X
has to be a tangent vector on SymmetricPositiveDefinite
, so a symmetric matrix, and additionally fulfill $\operatorname{tr}(X) = 0$.
The tolerance for the trace check of X
can be set using kwargs...
, which influences the isapprox
-check.
ManifoldsBase.project
โ MethodY = project(M::SPDFixedDeterminant{n}, p, X)
project!(M::SPDFixedDeterminant{n}, Y, p, X)
Project the symmetric matrix X
onto the tangent space at p
of the (sub-)manifold of s.p.d. matrices of determinant M.d
(in place of Y
), by setting its diagonal (and hence its trace) to zero.
ManifoldsBase.project
โ Methodq = project(M::SPDFixedDeterminant{n}, p)
project!(M::SPDFixedDeterminant{n}, q, p)
Project the symmetric positive definite (s.p.d.) matrix p
from the embedding onto the (sub-)manifold of s.p.d. matrices of determinant M.d
(in place of q
).
The formula reads
\[q = \Bigl(\frac{d}{\det(p)}\Bigr)^{\frac{1}{n}}p\]