Re: [eigen] RFC - how to avoid (impossible) recursive declarations |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] RFC - how to avoid (impossible) recursive declarations*From*: Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx>*Date*: Fri, 21 Sep 2012 11:15:29 +0200

On 09/21/2012 10:56:29 AM, Christoph Hertzberg wrote:

On 21.09.2012 10:46, Helmut Jarausch wrote:template <typename Derived, typename OtherDerived> VectorXd Block_Solve(MatrixBase<Derived>& A, const MatrixBase<OtherDerived>& b ) { int N = A.rows(), m = Teil_Dim, mrest= N-m;typedef typename Eigen::Block<Derived,Dynamic,Dynamic>PartialMatrix;typedef typename OtherDerived::SegmentReturnType PartialVector; .... seems to get the compiler into endless recursion since I get endless error messages. It probably tries recursive definitions which have to fail.That's essentially the same problem Norman Goldstein faces at themoment (see the thread "Recursion and block matrices").The easiest solution would be to use the Ref-class from thedev-branch (see Gael's mails in that thread),

Many thanks for that pointer, I'm going to look into it.

otherwise you need to handcraft some kind of Map object.

The other alternative is to avoid recursion at all. Essentially youcan simulate both "walking up" and "walking down" the stack by onefor-loop each.

Many thanks, Helmut.

**References**:**Re: [eigen] RFC - how to avoid (impossible) recursive declarations***From:*Christoph Hertzberg

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Recursion and block matrices** - Next by Date:
**Re: [eigen] RFC - how to avoid (impossible) recursive declarations** - Previous by thread:
**Re: [eigen] RFC - how to avoid (impossible) recursive declarations** - Next by thread:
**Re: [eigen] RFC - how to avoid (impossible) recursive declarations**

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