/// compute the norm of the scaled gradient.
compute the norm of the scaled gradient.
compute the norm of the scaled gradient .
fn gnorm(&self) -> f64 {
        let mut gnorm: f64 = 0.;
        if self.fnorm != 0. {
            let mut jj = 0;
            for j in 0..self.nfree {
                let l = self.ipvt[j];
                if self.wa2[l] != 0. {
                    let mut sum = 0.;
                    let mut ij = jj;
                    for i in 0..=j {
                        sum += self.fjac[ij] * (self.qtf[i] / self.fnorm);
                        ij += 1;
                    }
                    gnorm = gnorm.max((sum / self.wa2[l]).abs());
                }
                jj += self.m;
            }
        }
        gnorm
    }
fn gnorm ( & self ) -> f64 { let mut gnorm : f64 = 0. ; if self . fnorm != 0. { let mut jj = 0 ; for j in 0 .. self . nfree { let l = self . ipvt [ j ] ; if self . wa2 [ l ] != 0. { let mut sum = 0. ; let mut ij = jj ; for i in 0 ..= j { sum += self . fjac [ ij ] * ( self . qtf [ i ] / self . fnorm ) ; ij += 1 ; } gnorm = gnorm . max ( ( sum / self . wa2 [ l ] ) . abs ( ) ) ; } jj += self . m ; } } gnorm }
compute the norm of the scaled gradient.
compute the norm of the scaled gradient .
&self