Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Calling of VML Mathematical Functions [in-place operation]

$
0
0

HI,

I have a question concerning the use of Vector Mathematical Functions. The documentation does not contain a hint whether one can apply the same argument twice [in-place operation] without any side effects. For example for two vectors a, b the operation a = a + b should be computed via

vdadd( n, a, b, a ); [in-place operation]

instead of creating a working array y first and copy the result to array a again:

y = new double[n];
vdadd( n, a, b, y );
copy(source: y, destination: a);

I have tested it and it works for vdadd. My question is is not restricted to vdadd, more general to all other Mathematical functions as for example vdsqr, vzconj, vdpow etc. I can test each function before I will use it but this is rather time consuming and can change from release to release of the MKL Library.

Thanks in advance,

Markus


Viewing all articles
Browse latest Browse all 3005

Trending Articles



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