Struct totsu_core::ConePSD

source ·
pub struct ConePSD<'a, L: LinAlgEx> { /* private fields */ }
Expand description

Positive semidefinite cone

\[ {\rm vec}(\mathcal{S}_+^k) = \left\lbrace x \in \mathbb{R}^n,\ n=\frac12 k(k+1) \ \middle|\ {\rm vec}^{-1}(x) \in \mathcal{S}_+^k \right\rbrace \] \( {\rm vec}(X) = (X_{11}\ \sqrt2 X_{12}\ X_{22}\ \sqrt2 X_{13}\ \sqrt2 X_{23}\ X_{33}\ \cdots)^T \) which extracts and scales the upper-triangular part of a symmetric matrix X in column-wise.

Implementations§

Query of a length of work slice.

Returns the length of work slice that ConePSD::new requires.

  • nvars is a number of variables, that is a length of x of ConePSD::proj.

Creates an instance.

Returns the ConePSD instance.

Trait Implementations§

Calculates \(\Pi_\mathcal{K}(x)\), that is euclidean projection of \(x\) onto the cone \(\mathcal{K}\). Read more
Performs grouping for a diagonal preconditioning vector according to the cone \(\mathcal{K}\). Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.