Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Vector plus/minus one floating point number

$
0
0

Hi,

v?Add(n,a,b) performs element by element addition of vector a and vector b. Sometimes a single shift is required only, i.e. in this case b can be interpreted as a floating point number, i.e. a[k] + b. One example is the calculation of centered values (with respect to the empirical distribution). Does MKL provides such a function as well? Off cause I can create a vector b of the same size as the input vector a and set b[k] =b for each k, but I would like to avoid the memory allocation.

Best wishes

Markus Wendt


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>