Re: [eigen] conservative resize ... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] conservative resize ...
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Mon, 7 Sep 2009 16:01:26 +0200
- 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=XvIBU8AmCP0vf7dHqYucQ/zoFDcta7IsWTxjoTEx9fQ=; b=w6wV3KBi75uJZQdWft6rk3NnzKZZVZmRWY98Jim8vSgyKbjMwBWiaccxCqFz63+ivu 4WyShgJWw1LccFwiqsFF+hEXac5YBeXm/opPXEBBfMWwvr3WizYys7kzAHSg3uumAbM1 2TmLY62UYBCRrJx9BrAnVYqUd0AY3zQrcGH3Y=
- 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=ZE3B1PitBDp86pcQ947puUevn+IVb87pAnbQLZ1sIbQ91cGl/zabYok/BNlDO4qYBF oKya4yTz2cUoGCFMzFWhxTrNp2RQAdUumfLYdLK4evM5kRbEyzS6EAgFn3mi3qDNtpCM EBZS2e3BsK1r9umalbkVbswSHsdENJ9YGOESU=
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