Re: [eigen] inconsistent cwise() support |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] inconsistent cwise() support
- From: "Schleimer, Ben" <bensch128@xxxxxxxxx>
- Date: Wed, 18 Nov 2009 13:02:36 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258578156; bh=fTsioN2hEiz1RJoZSEZNQME2Jw6i8krV0vr3TO3DQ74=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=aQXYAfNDxABn0sCLruyflE+Tkbw1+XQDwXZN9Eut30m9Zr+AxdD53ZhYTYGuLDHSg82jtOZXRrxfbvswWcz5+0Hh6c1J3/EW+rdgSwNrio6+m6xqjVNowKQ5eY8rTOpIeHBJPLPdX3xrHPX9+nisSP5/L1kqNIzOcywHbLL9iwo=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=k1ia6MVZbZAVmlX8Y6o7nn1jtVqP2ewX0mwa8k45xqrfGsfCExk61vPAsad4bYSJBj+qpvPNlTgj+hlUXun5xFQwIpBFtXWxNj5PUG5oMfhXDnEkHvvz6wJzki7um2G1kYvy16J6VHGJKE0IFpgI/kat2KGdoXJBP0DyQtyfBe4=;
> >
> > MatrixdX matProd = A * B; // legal, indicates the matrix product of A and B
> > MatrixdX compProd = A.cwise() * B.cwise(); // legal, indicates the
> > component product of A and B
> > MatrixdX invalidProd = A.cwise() * B; // illegal, this isn't a matrix
> > product or pre-component product
> > MatrixdX invalidProd = A * B.cwise(); // illegal, same as above
>
> Yes, that's exactly where we are going, but with array() instead of cwise().
Cool, that's what I expected.
I wonder what the set of operations is where there is abigutity between the per-component version and the matrix version is?
I guess inverse is another one but thats what solve() is for..
MatrixdX val = 1.0f / A; // illegal?
MatrixdX val = 1.0f / A.array(); // legal?