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*: Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Fri, 21 Sep 2012 20:01:52 +0200

On 21.09.2012 19:05, Norman Goldstein wrote:

-- What was it about the Eigen class designs that made it convenient to restrict Ref to innerStride==1? Would it be a major development to remove this restriction? (convenient for transposing and even/odd subscripting).

Ref<MatrixXf,0,Stride<> > Read this for details: http://eigen.tuxfamily.org/dox-devel/classEigen_1_1Ref.html

-- Is there a signature for incr() that would allow me to pass in the MatrixXd directly, without first converting it to a Ref in main(): Ref< MatrixXd > sub( mat ); incr( sub );

void incr( Ref< MatrixXd > matV ); and in C++11 it should also be possible to use an l-value reference: void incr( Ref< MatrixXd >&& matV )

-- Are the two expressions Ref< MatrixXd > sub = mat; Ref< MatrixXd > sub( mat ); supposed to be equavalent? I think that a compiler is allowed to interpret the first one as a default constructor followed by an assignment operator.

No, for a class A A a = b; // not allowed if constructor is explicit ... and A a(b); call the constructor, and A a; a = b; calls the default constructor and then the assignment operator.

Christoph -- ---------------------------------------------- Dipl.-Inf. Christoph Hertzberg Cartesium 0.049 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: +49 (421) 218-64252 ----------------------------------------------

**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

**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

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

**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] Recursion and block matrices** - Next by thread:
**Re: [eigen] Recursion and block matrices**

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