Community
cancel
Showing results for 
Search instead for 
Did you mean: 
eimunic
Beginner
80 Views

elemental functions for Fortan?

Hello,
is there a FORTRAN-keyword similar to the __attribute__((vector)) of __declspec(vector) in C/C++,
which automatically creates a vectorized version of my function?
Best,
eimunic
0 Kudos
1 Reply
Steven_L_Intel1
Employee
80 Views

Fortran has elemental functions - you precede the FUNCTION keyword with the keyword ELEMENTAL. This is not really the same as __declspec(vector), but the Intel Fortran compiler is very good about vectorizing array and loop operations.

If you have further questions about Intel Fortran, please ask in one of our Fortran forum sections.
Reply