Home | History | Annotate | Download | only in ceres

Lines Matching full:exponent

74       // Decompose row_norm/col_norm into mantissa * 2^exponent,
76 // of frexp), as only the exponent is needed.
77 int exponent = 0;
78 std::frexp(row_norm / col_norm, &exponent);
79 exponent /= 2;
81 if (exponent != 0) {
82 const double scaled_col_norm = std::ldexp(col_norm, exponent);
83 const double scaled_row_norm = std::ldexp(row_norm, -exponent);
89 companion_matrix_offdiagonal.row(i) *= std::ldexp(1.0, -exponent);
90 companion_matrix_offdiagonal.col(i) *= std::ldexp(1.0, exponent);