# shrinkage::HybridStep

Shrinkage for Rust · 0.3.0

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
pub enum HybridStep
```

Curvature policy for [`HybridCoordinateDescent`](<6e142c2de8c70807e35ff7553fffda094241be993dc7a332ee193688dc1f04bf>)'s proximal-gradient transitions. 

<a id="variants"></a>

## Variants

<a id="variant-Backtracking"></a>

### `Backtracking`

```rust
Backtracking { initial_curvature: Option<f64>, max_backtracks: usize }
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

Validate each transition against the current quadratic model. Accepted curvatures can only increase within a quadratic solve. 

<a id="variant-Backtracking-field-initial_curvature"></a>

#### `initial_curvature`

```rust
initial_curvature: Option<f64>
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

Positive curvature seed, or the largest averaged column curvature. Include the intercept curvature when enabled; use one at zero. 

<a id="variant-Backtracking-field-max_backtracks"></a>

#### `max_backtracks`

```rust
max_backtracks: usize
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

Maximum number of curvature doublings after the first trial. 

<a id="variant-FixedBound"></a>

### `FixedBound`

```rust
FixedBound
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

Use a computed Frobenius upper bound, including the intercept column. The bound is conservative and requires no spectral estimate or Gram. 

<a id="impl-490c6263feb756a0dbc503b083b743374861030387b17c18e1a100c95344c086"></a>

## Implementation of Clone

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl Clone for HybridStep
```

<a id="method-clone-490c6263feb756a0dbc503b083b743374861030387b17c18e1a100c95344c086"></a>

### `clone`

```rust
fn clone(&self) -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

<a id="impl-d5c0f765f02325e5ab2e59bcbb6de02a68c4a2ebc876f758f7fb4e604b3e45c7"></a>

## Implementation of Copy

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl Copy for HybridStep
```

<a id="impl-6ee6535e06adcad262ccbfbe2d0d1e19149341036c882ca954c2cd45fcbd15ee"></a>

## Implementation of Debug

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl Debug for HybridStep
```

<a id="method-fmt-6ee6535e06adcad262ccbfbe2d0d1e19149341036c882ca954c2cd45fcbd15ee"></a>

### `fmt`

```rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

<a id="impl-a04596a513887569c209250991b84344235bb66b9c17887e93590d60ac3843c8"></a>

## Implementation of Default

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl Default for HybridStep
```

<a id="method-default-a04596a513887569c209250991b84344235bb66b9c17887e93590d60ac3843c8"></a>

### `default`

```rust
fn default() -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

<a id="impl-61040159ef463726838c254660230854b64407364a4630936626bc5ad12733e6"></a>

## Implementation of PartialEq

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl PartialEq for HybridStep
```

<a id="method-eq-61040159ef463726838c254660230854b64407364a4630936626bc5ad12733e6"></a>

### `eq`

```rust
fn eq(&self, other: &Self) -> bool
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

<a id="impl-b35c87d085b3f51a2cb85ff6b25852a458f202f5cf55699708dd49c4e69f5362"></a>

## Implementation of StructuralPartialEq

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/hybrid.rs>)

```rust
impl StructuralPartialEq for HybridStep
```

<a id="impl-84654fd9d96b73869a36f7a1173872fc9a37f0e3877f4daf8acd93cf5a81ff05"></a>

## Implementation of Freeze

```rust
impl Freeze for HybridStep
```

<a id="impl-7ba804ef6ab3991755628908a704505a8106cf9396e6e355e6cb97385caa0db6"></a>

## Implementation of RefUnwindSafe

```rust
impl RefUnwindSafe for HybridStep
```

<a id="impl-b878826a0ac8ebfa305792aa9bade8f72ba611723f4d87c85476289ea0f26ce2"></a>

## Implementation of Send

```rust
impl Send for HybridStep
```

<a id="impl-14908c76a629a63ae011088c8e34479e8c4e053677bb3a5df4c44c52934ae43f"></a>

## Implementation of Sync

```rust
impl Sync for HybridStep
```

<a id="impl-edc3a84aeae842d5fef1a42f4dde4dfb4970e6d93609f4f5f126aec93f2d745c"></a>

## Implementation of Unpin

```rust
impl Unpin for HybridStep
```

<a id="impl-92150d9c041d3fe085cf6c462935bff6eaa77b17cbe50c54833e16fea8df1818"></a>

## Implementation of UnsafeUnpin

```rust
impl UnsafeUnpin for HybridStep
```

<a id="impl-25f89be4870065ec30af5ab4fdd91deba9da70049f9b5b99675f296dae67583a"></a>

## Implementation of UnwindSafe

```rust
impl UnwindSafe for HybridStep
```

<a id="impl-1e5682dc18e03c648aa9b125290c107c1e8d96ce8a179a8532e4057da4daf0cd"></a>

## Implementation of Any

```rust
impl<T> Any for T where T: 'static + ?Sized
```

<a id="impl-ef39a31d69bd7e2a30223e623f4d8223aea46d8fc4f42e14bffa3ec7c63b5f4e"></a>

## Implementation of Boilerplate

```rust
impl<T> Boilerplate for T where T: Copy + Send + Sync + Debug + PartialEq + 'static
```

<a id="impl-6c0b25c2c92cdb117802d9c0a4c70afc9a8bfb0da875bc6e66191e2349fcdf3f"></a>

## Implementation of Borrow

```rust
impl<T> Borrow<T> for T where T: ?Sized
```

<a id="impl-796e80d926348273a22b04d8e84f510693b11c06ec57c3c3e2e8c1524094a85c"></a>

## Implementation of BorrowMut

```rust
impl<T> BorrowMut<T> for T where T: ?Sized
```

<a id="impl-8360e4092e7ec4a05a26dd304cd739398f0cacc50c8d08dd5be0223d1a08d02e"></a>

## Implementation of ByRef

```rust
impl<T> ByRef<T> for T
```

<a id="impl-dbb1293b7b5dd80c4d9a98cfdd6843dc7470224c0b1387731cd418da07046d7b"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-97b65e7dfc44b5ecaa495a3a19fe737914a1e9f8532200cf8f46191314e7d777"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-86d7da2bfd1140cc1675dfe6a975e6a2762338ab32731152da0723858ef3aa81"></a>

## Implementation of CloneToUninit

```rust
impl<T> CloneToUninit for T where T: Clone
```

<a id="impl-c22bdd3b1b677b66eb32d1c182cc1410c7f0c46491dd74e6a659647c238d19ec"></a>

## Implementation of From

```rust
impl<T> From<T> for T
```

<a id="impl-5adf6ca1830f30fbbac655ab8ff394d254954df7ededc7cc833c72fdc87d6f00"></a>

## Implementation of Imply

```rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized
```

<a id="impl-85eec431edd188129f88290bbcb748e4d2fdc97f7efef3c162b8c252286ffec0"></a>

## Implementation of Into

```rust
impl<T, U> Into<U> for T where U: From<T>
```

<a id="impl-c40268dd59dd3329202d3c0544c62372e98ff3baa8ec442ec00752e024ec1d06"></a>

## Implementation of IntoEither

```rust
impl<T> IntoEither for T
```

<a id="impl-5655b1ef858b34a584cb80104f040c8a4063ced0d281311a0833ed12aefde86e"></a>

## Implementation of Pointable

```rust
impl<T> Pointable for T
```

<a id="impl-8cc2aa01198fc9fa44f08b889f62988d70d2a7f4f0f11f4666d4c08bdaddb22a"></a>

## Implementation of Read

```rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized
```

<a id="impl-5ea09131039c62dd92b119d480a35c7e2b33d2b81dccf0b849f6b1f19f4bda24"></a>

## Implementation of Same

```rust
impl<T> Same for T
```

<a id="impl-e7c74775fb3ccca97dde289783210508c61e4f404318b19c70c2c185f535f063"></a>

## Implementation of Scalar

```rust
impl<T> Scalar for T where T: 'static + Clone + PartialEq + Debug
```

<a id="impl-7ee6ff38d6674f5edfe4734359062c2a67a572cff5899a89704764822b931c7f"></a>

## Implementation of SupersetOf

```rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>
```

<a id="impl-a8ef6e94191301c3685488478f4905086c47137bac2d606ea4d09631d5472b06"></a>

## Implementation of ToOwned

```rust
impl<T> ToOwned for T where T: Clone
```

<a id="impl-83960135d00d98080c95a08867729696e36811280c2dd9cf34c1b4fe21c81e18"></a>

## Implementation of TryFrom

```rust
impl<T, U> TryFrom<U> for T where U: Into<T>
```

<a id="impl-1cc495bcaa5112ffb304e7f0de674feca391fd97f47bec86033a9225b72ac05c"></a>

## Implementation of TryInto

```rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>
```
