Re: [eigen] conservative resize ... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] conservative resize ...
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 7 Sep 2009 10:28:02 -0400
- 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; bh=+DoNtOmryeS/R2jBdnNW453c59JS5L1Fjq/7j2EI9v4=; b=DyjqprARCbp4GdoMAt3Bt9gNrLn8TJWQAaDSi9oKXgNGE63KoVrvJUlqDMfu2A4FKO R062IMtUYwtXjMjHYbfnOilAbPSX13pNLAGrDpt//t8KvnMSN8ucZZj1E065OrQefp9i WjJ/8JpJnm3z5wEyyBP4j3lNeHlCh58DGteBY=
- 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; b=mOqhr7AS4/z02cPIBJXDSUnF3n6PNPOkZdL0vUJtJLiL96yQj4rkIfCaFHEweXcTtb nCoEhtHyy4pwBxt2fC/qlGk8TWmGue9aZmB/bcmuoQXZ82+kLQZtbyHzzAh/kV5utwwS FOiVrx8a176LyWYjJWpj4mnjQgScLrEzzQ5hE=
There already is: MatrixBase<T>::IsVectorAtCompileTime.
2009/9/7 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> ok, i just gave it a quick shot but it seems that i need a small
> helper to distinguish between vectors and matrices in
> conservativeResizeLike(const MatrixBase<OtherDerived>& other). segment
> is only defined on vectors and when i would use block i would need to
> check for three different cases...
>
> if (matrix)
> else if (col-vector)
> else /*if (row-vector*/
>
> the question is now, where i should put such a helper struct? in xprhelper?
>
> - hauke
>
>
>