Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

What does INTENT(IN) mean ??

Deleted_U_Intel
Employee
451 Views

In the VML section of the manual I am coming across the notation:

REAL, INTEND(IN)

Not coming from a Fortran background, could someone explain to me what INTENT(IN) means and how this might effect calling vml functions from vc++ using the fortran convention for both real and complex vectors ??

0 Kudos
1 Reply
TimP
Honored Contributor III
451 Views
Fortran INTENT(IN) is analogous to C const. It expresses the programmer's intent not to modify that object while the declaration is in scope, and requests the compiler to complain if it can detect a violation of that intent. It would not necessarilyaffect calling from C++, although it documents the idea that the vml function must not modify those arguments. For example, if the vml function can be treated as expecting a reference, the INTENT would not change that.
0 Kudos
Reply