Complex_multiplication_polar   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm

Implementation

;performs complex multiplication of Complex buffers X*Y=Z
(bind-func Complex_multiplication_polar
  (lambda (X:Complexf* Y:Complexf* Z:Complexf* size:i64)
    (let ((n:i64 0))
      (dotimes (n size)
        (tset! (pref-ptr Z n) 0 (* (tref (pref-ptr X n) 0) (tref (pref-ptr Y n) 0))) ;multiply magnitude
        (tset! (pref-ptr Z n) 1 (+ (tref (pref-ptr X n) 1) (tref (pref-ptr Y n) 1))) ;sum angles
        void))))


Back to Index

Similar Entries

  • Complex_addition_bybuf    xtlang
  • Complex_addition_bybuf    xtlang
  • Complex_bufferize    xtlang
  • Complex_bufferize    xtlang
  • Complex_bufferize    xtlang
  • Complex_bufferize    xtlang
  • Complex_conj    xtlang
  • Complex_conj    xtlang
  • Complex_division_bybuf    xtlang
  • Complex_division_bybuf    xtlang
  • Complex_mag    xtlang
  • Complex_mag    xtlang
  • Complex_multiplication_bybuf    xtlang
  • Complex_multiplication_bybuf    xtlang
  • Complex_phase    xtlang
  • Complex_phase    xtlang
  • Complex_phase2    xtlang
  • Complex_subtraction_bybuf    xtlang
  • Complex_subtraction_bybuf    xtlang
  • Complex_unbufferize    xtlang
  • Complex_unbufferize    xtlang
  • Complex_unbufferize    xtlang
  • Complex_unbufferize    xtlang
  • Cpolar    xtlang
  • GSL_SET_COMPLEX    xtlang
  • complex?    scheme
  • impc:ir:complex-type?    scheme
  • impc:ti:complex-type?    scheme
  • impc:ti:complex-unify    scheme
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang
  • xtm_multiplication    xtlang