Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
公告
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

elemental functions for Fortan?

eimunic
初学者
563 次查看
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 项奖励
1 回复
Steven_L_Intel1
563 次查看
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.
0 项奖励
回复