Re: [eigen] How to resize a partially fixed matrix |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx
*Subject*: Re: [eigen] How to resize a partially fixed matrix
*From*: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
*Date*: Wed, 24 Jun 2009 22:08:24 +0200
*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=zgDdWihR3W9QVIhhyUduDDVwJJK/g5gjCv5pVAouxI0=; b=s6tJ8IAklT+O9nlNSlWMoKzIud1R4d/7inraODbcC4f6yyjaUWrJS7S5OnuiLn/VIN JiI2sxjjk5X+WDCETfNmuRf96ehNjzTDnFp+++SRZ1iAHE5yKK10V97yOnIhGhNOnocS UW2kfU+zYh97ShRXAuWIDLLhwOXUYzeTgyrFQ=
*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=ThKDdAeUt7i31KKIPlsn/b8oRsKOs3c9fU8/hw0mLa1XHv3JNcNaDamTLVNmjw1wGh nqJNs0+Kxx/05KyuOdYuEYvCz37A8n8Nt/uTivCA5eO5FQAP3lfMy33jwhTJhkoVngtr VvWK6wy5Lx+uYnEgeEmlyhOoOBcVj+c9Hdu60=

2009/6/24 Markus Benjamin Fröb <grey_earl@xxxxxx>:
>> Matrix<float,Dynamic,2> m;
>> m.resize(3);
>>
>> but then we also want this to work:
>>
>> Matrix<float,3,2> m;
>> m.resize(3);
>
> I don't see why the second case should work, since a) it's ambigous what the
> user wanted and b) in the documentation it says explicitly "Of course, fixed-
> size matrices can't be resized."
Yes, that's what I meant, sorry if I was unclear, we were wondering if
A should be allowed and I said "if we want to allow A then we also
want to allow B", where B is impossible, conclusion: we can't allow A.
Benoit