Re: [eigen] problem with selfadjointView |

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

*To*: "eigen@xxxxxxxxxxxxxxxxxxx" <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] problem with selfadjointView*From*: Jitse Niesen <jitse@xxxxxxxxxxxxxxxxx>*Date*: Sun, 22 Aug 2010 12:39:54 +0100 (BST)

On Sat, 21 Aug 2010, Ben Goodrich wrote:

Thanks for implementing that. Is there something special needed to make it work with templates? I would have expected template <typename Derived> void bar(const MatrixBase<Derived> &x, const MatrixBase<Derived> &A, MatrixBase<Derived> &z) { z = x.transpose() * A.selfadjointView<Lower>() * x; } to work now, but the compiler throws an expected primary-expression error.

Perhaps you need to add the 'template' keyword, as in: z = x.transpose() * A.template selfadjointView<Lower>() * x; Warning: I did not try it out. Jitse

**Follow-Ups**:**Re: [eigen] problem with selfadjointView***From:*Ben Goodrich

**References**:**[eigen] problem with selfadjointView***From:*Ben Goodrich

**Re: [eigen] problem with selfadjointView***From:*Gael Guennebaud

**Re: [eigen] problem with selfadjointView***From:*Gael Guennebaud

**Re: [eigen] problem with selfadjointView***From:*Ben Goodrich

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] meanwhile, on the SVD front...** - Next by Date:
**Re: [eigen] problem with selfadjointView** - Previous by thread:
**Re: [eigen] problem with selfadjointView** - Next by thread:
**Re: [eigen] problem with selfadjointView**

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