Re: [eigen] about the semantic of MaxRows, MaxCols |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] about the semantic of MaxRows, MaxCols
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Wed, 3 Mar 2010 14:30:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=vdQyPovENi8l3KfSfhywvgRPSlQvrvTUil1h9mes2To=; b=fgilgT/00IZFpSpcg1gxWn3+asmzCIgiGqDt0VCur/RSg9IgsYqXqoOUsTVHycPdtv lJKfytmN1TUA/rTInHh6aexPImkn5GlX4UtGnTDg9a20KeTh4HEBuPtyUXq7BgP2/OUD hfkCZ3WxTJ1x5Eg+l/dLo2Nn4qKqBRRV3ruoE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=A5Ix1FwWKc4I7TGELT4uyDZC5kwUleFvTKpSdia770/PiKi7h+0yDTxll2m9RTc+5n ObWXYU5yrphdjs3px5zrSXU4wCpI3WVaJTYrb4VxvPw6FTamHuttou9bGbJRcL3JYeZs M056PpioV4xlqTLv0dzE7w89JyTcC4SjytNx8=
Over here Matrix<float,3,3,0,4,4> does not even compile but let's
assume we used Matrix<float,Dynamic,Dynamic,0,4,4> ...
I think it is ok, that Matrix behaves as it does right now, i.e. I am
fine with what is happening here
Matrix<float,Dynamic,Dynamic,0,4,4> m(3,3);
m << 1,4,7, 2,5,8, 3,6,9;
std::cout << m << std::end;
1 2 3
4 5 6
7 8 9
What is unfortunate is that this shows me right away that I have a
huge bug in conservativeResize for stack objects...
m.conservativeResize(4,4);
std::cout << m << std::endl;
.... rubbish ...
So there is some work to do.
Back to the topic. What Gael proposes sounds like stride support in Matrix...
- Hauke