vcopy_pack   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/math.xtm

2 implementations of vcopy_pack: #1 /digego/extempore/tree/v0.8.9/libs/core/math.xtm · #2 /digego/extempore/tree/v0.8.9/libs/core/math.xtm


Implementation

(bind-func vcopy_pack
  "take a sparse double* buffer and copy it into a packed representation"
  (lambda (src:double* dest:double* stride neighbors srclen)
    (doloop (i srclen)
      (doloop (j neighbors)
        (pset! dest (+ (* neighbors i) j) (pref src (+ (* stride i) j)))))))


Back to Index

Similar Entries