Re: [eigen] Recursion and block matrices |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Recursion and block matrices*From*: Norman Goldstein <normvcr@xxxxxxxxx>*Date*: Tue, 18 Sep 2012 22:03:48 -0700

Thanks for explaining Stride<0,0>.

Thanks, again, Norm On 09/18/2012 08:59 AM, Christoph Hertzberg wrote:

On 18.09.2012 17:51, Norman Goldstein wrote:I figured this one out by decomposing the C++ statements until the compiler message was more specific. It turns out that the compiler was being asked to match Stride<0,0> with Stride<-1,-1>. The former is defaulted in some declarations, while the latter is for dynamic stride. When would one want to use Stride<0,0>?Stride<0,0> means "natural" stride, so colstride is number of rows,rowstride is 1 (assuming colmajor matrices).Have you yet tried to use the Ref<MatrixXd> class, as Gael suggestedsome mails ago? Or are you implementing this more for the fun of it?ChristophOn 08/28/2012 01:01 AM, Gael Guennebaud wrote:With the devel branch you might try: void incr(Ref<MatrixXd> mat) { // no cast needed ... }

**Follow-Ups**:**Re: [eigen] Recursion and block matrices***From:*Norman Goldstein

**References**:**Re: [eigen] Recursion and block matrices***From:*Norman Goldstein

**Re: [eigen] Recursion and block matrices***From:*Norman Goldstein

**Re: [eigen] Recursion and block matrices***From:*Christoph Hertzberg

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] unpleasant surprise mit math functions** - Next by Date:
**Re: [eigen] Using Eigen in commercial software** - Previous by thread:
**Re: [eigen] Recursion and block matrices** - Next by thread:
**Re: [eigen] Recursion and block matrices**

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