Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can IMSL library be used in FORTRAN MEX file?

2 views
Skip to first unread message

Edwards

unread,
May 2, 2005, 12:32:27 PM5/2/05
to
Hi,there;
Does anyone have experience in writing IMSL library in Fortran MEX
file? Can I just use "USE numerical_libraries" and the subroutine in
IMSL? Will it affect compliation?
Any help is appreicated!

Edwards

Ben Barrowes

unread,
May 2, 2005, 1:19:08 PM5/2/05
to
Should work. Just link in the libraries at compile time (in the mex
statement).

Edwards

unread,
May 2, 2005, 2:02:29 PM5/2/05
to
Are you saying i should put "USE numerical_libraries" in the mex
gateway subroutine?
kind of confused about "link in the libraries at compile time(in the
mex statement)". Can you give me more details?

thanks,
Edwards

Edwards

unread,
May 2, 2005, 2:02:32 PM5/2/05
to
Are you saying i should put "USE numerical_libraries" in the mex
gateway subroutine?
kind of confused about "link in the libraries at compile time(in the
mex statement)". Can you give me more details?

thanks,
Edwards

Ben Barrowes

unread,
May 2, 2005, 2:36:22 PM5/2/05
to
When you mex in matlab, just add a -lIMSL or something similar depending
on the name of your imsl library.

For example, when I want to use a lapack routine, I mex with:
mex filename.f -llapack
making sure the library location is on the path, etc. Just replace
lapack with your IMSL library name.

Then you should be able to put "USE numerical_libraries" in your
computational routine without a problem.

0 new messages