summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2019-02-19 18:41:59 +0530
committerDennis Francis <dennis.francis@collabora.com>2019-02-20 07:15:35 +0100
commitd707a5e64ba53ddb7669cca725915527aa788a6b (patch)
tree7d4ac91fed0fb997f454914c81090dccb83325ee /dtrans
parentfd7f542c1342bdcab35c5186b629d57467bf832c (diff)
tdf#74664 : optimize the computation of twiddle factors.
Twiddle factors are just Nth roots of unity and in this case N is always some 2^k, so we just need to compute the roots that come in the starting quadrant (may be first or fourth depending on whether we want to calculate DFT or the inverse DFT) and exploit the symmetry of the unit circle. Better still, we only need to compute the real parts of roots in the starting quadrant and just use the identity :- sin(angle) = cos(90-angle) // if angle is in degrees. to compute the imaginary parts quickly. Change-Id: Ic42aefa1c46668f9365984c79aebf2971e7d2830 Reviewed-on: https://gerrit.libreoffice.org/68017 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'dtrans')
0 files changed, 0 insertions, 0 deletions