/// On the first iteration and if user_scale is requested, scale according
/// to the norms of the columns of the initial jacobian,
/// calculate the norm of the scaled x, and initialize the step bound delta.
On the first iteration and if user_scale is requested, scale according
to the norms of the columns of the initial jacobian,
calculate the norm of the scaled x, and initialize the step bound delta.
On the first iteration and if user_scale is requested scale according to the norms of the columns of the initial jacobian calculate the norm of the scaled x and initialize the step bound delta .
fn scale(&mut self) {
        if self.iter != 1 {
            return;
        }
        if !self.cfg.do_user_scale {
            for j in 0..self.nfree {
                self.diag[self.ifree[j]] = if self.wa2[j] == 0. { 1. } else { self.wa2[j] };
            }
        }
        for j in 0..self.nfree {
            self.wa3[j] = self.diag[self.ifree[j]] * self.x[j];
        }
        self.xnorm = self.wa3.enorm();
        self.delta = self.cfg.step_factor * self.xnorm;
        if self.delta == 0. {
            self.delta = self.cfg.step_factor;
        }
    }
fn scale ( & mut self ) { if self . iter != 1 { return ; } if ! self . cfg . do_user_scale { for j in 0 .. self . nfree { self . diag [ self . ifree [ j ] ] = if self . wa2 [ j ] == 0. { 1. } else { self . wa2 [ j ] } ; } } for j in 0 .. self . nfree { self . wa3 [ j ] = self . diag [ self . ifree [ j ] ] * self . x [ j ] ; } self . xnorm = self . wa3 . enorm ( ) ; self . delta = self . cfg . step_factor * self . xnorm ; if self . delta == 0. { self . delta = self . cfg . step_factor ; } }
On the first iteration and if user_scale is requested, scale according
to the norms of the columns of the initial jacobian,
calculate the norm of the scaled x, and initialize the step bound delta.
On the first iteration and if user_scale is requested scale according to the norms of the columns of the initial jacobian calculate the norm of the scaled x and initialize the step bound delta .
&mut self