- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my program , I want to compute an exponential value of a double precision complex, and I use the intrinsic function CDEXP , however, the Intel Fortran Complier says:
"Warning 39 : This intrinsic function is an extension to standard Fortran 95" .
so, what is the matter with my program? Is the CDEXP wrong ?
Please help me, and thank you .
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is nothing wrong with your program. But as the compiler states, CDEXP IS an extension to the Fortran (90, 95 and forthcoming 2003) standard.
If you want to be standard compliant simply use EXP. It has got all the advantages: it is generic (whatever KIND you supply as argument, it will return a function value of the same KIND) and it is elemental: If you input a scalar it will return a scalar, if you input an array of any shape it will return an array of the same shape. And you don't have to remember all the specific names for the EXP function like CDEXP.
Best wishes
LarsM
If you want to be standard compliant simply use EXP. It has got all the advantages: it is generic (whatever KIND you supply as argument, it will return a function value of the same KIND) and it is elemental: If you input a scalar it will return a scalar, if you input an array of any shape it will return an array of the same shape. And you don't have to remember all the specific names for the EXP function like CDEXP.
Best wishes
LarsM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank youfor your reply !
![](/skins/images/44D6FBC13D1AFC21DF3F0C7813903D74/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page