Lines Matching defs:approximation
370 // AtanOp approximation.
420 // Perform the Taylor series approximation for atan over the range
433 // Apply the polynomial approximation for the numerator:
441 // Apply the polynomial approximation for the denominator:
448 // Compute approximation of theta:
467 // AtanOp approximation.
536 // TanhOp approximation.
620 // LogOp and Log2Op approximation.
634 // This approximation comes from Julien Pommier's SSE math library.
770 // Log1p approximation.
814 Value approximation = builder.create<arith::SelectOp>(
816 rewriter.replaceOp(op, approximation);
821 // Asin approximation.
825 // This approximation is based on the following stackoverflow post:
886 // Asin(x) approximation for x = [-9/16, 9/16]:
916 // Acos approximation.
920 // This approximation is based on the following stackoverflow post:
999 // Erf approximation.
1006 // The approximation error is ~2.5e-07.
1122 // Exp approximation.
1184 // Polynomial approximation from Cephes.
1194 // relative error between our approximation and the true value of e^a is less
1300 // ExpM1 approximation.
1350 Value approximation = builder.create<arith::SelectOp>(
1353 rewriter.replaceOp(op, approximation);
1358 // Sin and Cos approximation.
1377 // Approximates sin(x) or cos(x) by finding the best approximation polynomial in
1487 Value approximation = select(negativeRange, mul(cstNegativeOne, v6), v6);
1489 rewriter.replaceOp(op, approximation);
1495 // Cbrt approximation.
1540 // Compute an approximation of one third:
1588 // Rsqrt approximation.
1638 // Do a single step of Newton-Raphson iteration to improve the approximation.