Re: [eigen] Use Eigen as BLAS |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] Use Eigen as BLAS*From*: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>*Date*: Sun, 19 Feb 2017 11:32:48 +0100*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ote5q2pkBK93cbRb2Oy4PsrTFrYx7APYJwn8f3SSfeo=; b=mnV9UgC0lNAxY9y50qADFdOpPK98HkMGhGoA0T1j+CiVfVfpfnsifl2izJGauOm55o QZs1cPo2Ch4R9nZ48skH2MwMbyJKQ3J5UymnUkTEf0oXcKMR5t1vn5/0ZYfdOvZ0e8o+ kzxGgqQ9NA4af+twDSiasJWBfX7rgrEtjFKUBZ0lkOpfMZbVzLdJodE9viG8M0nvofui 4uxqbgMvFidc2L8UMNp5eJxzCyM9YCjxoyVpvVeu172lTFcUrqKLVY0fwqVlfR3oFIa0 aFQKNmTXWYQ6BQDPy/K02ku97cNYjZubGqMxsjqrYehVye1TQXEBtWKQfjqQPoPWl4MY Hb9A==

Yes and no. There is one BLAS API in eigen/blas, but its goal is to compile a BLAS compatible library. Converting it to a header-only lib would be a bad idea because BLAS functions are not templated, so you would end up compiling the entire blas every time... Then if you are looking for something like:

MatrixXd A, B, C;

gemm(A,B,alpha,C,1);

I'm not sure to see the point.

gael

On Sat, Feb 18, 2017 at 11:43 AM, Mathieu Dutour <mathieu.dutour@xxxxxxxxx> wrote:

I have an existing C program that is using BLAS/LAPACK asexternal linear algebra library.For various reason I would like to transform this into a headerbased C++ program with no external dependency to dynamiclibrary.Obviously Eigen can fit such a role as it has all the functionalityof BLAS.But my question is does there exist a way to have BLAS/LAPACKlike API from Eigen? At present it seems to be no, but maybesomeone has done it.Mathieu

**Follow-Ups**:**Re: [eigen] Use Eigen as BLAS***From:*Peter

**References**:**[eigen] Use Eigen as BLAS***From:*Mathieu Dutour

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] memory error** - Next by Date:
**Re: [eigen] Use Eigen as BLAS** - Previous by thread:
**[eigen] Use Eigen as BLAS** - Next by thread:
**Re: [eigen] Use Eigen as BLAS**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |