Re: [eigen] refactoring fork: some news |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] refactoring fork: some news*From*: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>*Date*: Sun, 20 Dec 2009 17:22:03 -0500*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=IgnFy5d9JNmQeGtwQdcN77qI7H2IWipGmwCKvU3cpVY=; b=u/JO5uxDf5I7/SS8stQe6oWScJRAPIUQ7CIeF0VScqesZUmaV0W2xdDBJRGRHGW9pJ LSebcN3Q6KXdXM+wgqlaRgY2RHWwSURhiUkCLqybMnGCEbZN7BfniEvduIwSAsUiESId oTGLkB8Si4iSwSIjb2RKCAtT5Z69CmpJGOkEw=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ggf/80sYe3++Yj1r7kYpQXOFw7UQtG+1Tt6cZa4waYrOrqXVTjd0c6ZwvOsH6Bz35z suYR3kWGEbMO8hD3pGCwu9b9CqwjCJwV/hTmiYHU08oWbLjZoc/LaUUwLgAe9Bagamsa dqgVMKCip0y7z4SjVb3CuLC2jeL0wjHmbE1JE=

Hi, This is indeed orthogonal to this question. What you're asking for is something you can already do with Map: MatrixXf mat(r,c); MatrixXf::Map mat_reshaped(mat.data(), r2, c2); or VectorXf::Map mat_reshaped(mat.data(), r*c); etc... then of course it's legitimate to want a nicer syntax, so it would be worthwhile, i think, to add a convenience function for that. Perhaps reshaped(), I don't know. Keir suggested the same to me recently. Benoit 2009/12/20 Manuel Yguel <manuel.yguel@xxxxxxxxx>: > Hi, > I am practically sure that it is off the point however my concern is > that in some applications, it is necessary to view a matrix of size > nxm as a vector 1xnm or pxq with nm = pq. > I wonder if this is the good moment to raise my case, but is this > possible to consider having a matrix() function that takes two > parameters that are compatible with the number of coefficients in the > array: matrix(int rows, int cols ) with rows*cols = size() > such that we can have for a 3x4 matrix, a 12x1 vector or a 2x6 matrix > or a 4x3 matrix etc... assuming that the coefficients are given by the > storage order row major or column major. > > - sincerely, > > Manuel > > >

**References**:**[eigen] refactoring fork: some news***From:*Gael Guennebaud

**Re: [eigen] refactoring fork: some news***From:*Hauke Heibel

**Re: [eigen] refactoring fork: some news***From:*Benoit Jacob

**Re: [eigen] refactoring fork: some news***From:*Manuel Yguel

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] refactoring fork: some news** - Next by Date:
**[eigen] Enhanced AlignedBox** - Previous by thread:
**Re: [eigen] refactoring fork: some news** - Next by thread:
**Re: [eigen] refactoring fork: some news**

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