Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
26866 Discussions

Using intel MKL vector math function for multi-dimensional array

Stephen_W_
Novice
139 Views

Suppose both `a` and `b` are 1-dimensional array with size n, then we can use `vdexp(n, a, b)` to compute the b = exp(a) with MKL function `vdexp`.

When `a` is a two dimensional array with size n1*n2, which is the efficient way to use `vdexp`, a loop over columns or reshape `a` to a one-dimensional array?

 

0 Kudos
1 Solution
jimdempseyatthecove
Black Belt
139 Views

call vdexp(size(a),a,b)

Jim Dempsey

 

View solution in original post

1 Reply
jimdempseyatthecove
Black Belt
140 Views

call vdexp(size(a),a,b)

Jim Dempsey

 

View solution in original post

Reply