TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on March 24, 2016, 04:46:47 AM

Title: BLAS and LAPACK in AutoLisp
Post by: mailmaverick on March 24, 2016, 04:46:47 AM
How to use high-end algebraic libraries such as BLAS and LAPACK in Autolisp ?

http://www.netlib.org/lapack/

http://www.netlib.org/blas/
Title: Re: BLAS and LAPACK in AutoLisp
Post by: JohnK on March 24, 2016, 06:06:11 AM
Rewrite them in Autolisp.
Title: Re: BLAS and LAPACK in AutoLisp
Post by: dgorsman on March 24, 2016, 11:59:35 AM
You'll need to do some legwork and probably some more refinement of what you are going to do with them.  If you are going to use them in LISP, you can try creating an interface in dotNET which references those DLLs (assuming they are) and wraps them with some LISP functions.  If you are going to use them with dotNET then same thing, only easier.
Title: Re: BLAS and LAPACK in AutoLisp
Post by: mailmaverick on March 25, 2016, 03:07:54 AM
Dear dgorsman,
I know LISP but I dont know DOT NET. Yes there are DLLs of BLAS / LAPACK which are available with me.

But how to call those DLLs from LISP ? Please help.
Title: Re: BLAS and LAPACK in AutoLisp
Post by: dgorsman on March 28, 2016, 10:40:56 AM
You don't call a DLL, you call methods and properties.  If there is a COM/ActiveX interface you can do that using the (vlax-...) functions.  Otherwise you have to build your own wrapper.