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    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_addition_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_bufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_conj    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_conj    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_division_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_division_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_mag    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_mag    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_multiplication_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_multiplication_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_phase2    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • Complex_subtraction_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_subtraction_bybuf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Complex_unbufferize    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • Cpolar    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • GSL_SET_COMPLEX    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • complex?    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • impc:ir:complex-type?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:complex-type?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:complex-unify    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm
  • xtm_multiplication    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math_ext.xtm