UpdateByCutChoice

Trait UpdateByCutChoice 

Source
pub trait UpdateByCutChoice<SearchSpace> {
    type ArrayType;

    // Required methods
    fn update_bias_cut_by(
        &self,
        space: &mut SearchSpace,
        grad: &Self::ArrayType,
    ) -> CutStatus;
    fn update_central_cut_by(
        &self,
        space: &mut SearchSpace,
        grad: &Self::ArrayType,
    ) -> CutStatus;
    fn update_q_by(
        &self,
        space: &mut SearchSpace,
        grad: &Self::ArrayType,
    ) -> CutStatus;
}

Required Associated Types§

Required Methods§

Source

fn update_bias_cut_by( &self, space: &mut SearchSpace, grad: &Self::ArrayType, ) -> CutStatus

Source

fn update_central_cut_by( &self, space: &mut SearchSpace, grad: &Self::ArrayType, ) -> CutStatus

Source

fn update_q_by( &self, space: &mut SearchSpace, grad: &Self::ArrayType, ) -> CutStatus

Implementations on Foreign Types§

Source§

impl UpdateByCutChoice<EllStable> for (f64, Option<f64>)

Source§

type ArrayType = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>

Source§

fn update_bias_cut_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Source§

fn update_central_cut_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Source§

fn update_q_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Source§

impl UpdateByCutChoice<EllStable> for f64

Source§

type ArrayType = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>

Source§

fn update_bias_cut_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Source§

fn update_central_cut_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Source§

fn update_q_by( &self, ellip: &mut EllStable, grad: &Self::ArrayType, ) -> CutStatus

Implementors§