Re: [eigen] cwise operator vs matlab's .* notation |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] cwise operator vs matlab's .* notation*From*: Abe Bachrach <abachrach@xxxxxxxxx>*Date*: Sat, 28 Aug 2010 16:15:19 -0400*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=b+pwM1VWdcFqvYY6//P6tL2wWIipy0Wp4GSesEPnF9E=; b=Js7enL+SI23SChSAp6uEBvI2EZfNINxyNZSu/QQDrHMN8BD1lK8KJD8omAjtqxcP+q +XRvRX1PvhvdnEMePQqdBf6Qqe8n3yIiLSaHuKvVrAnqU+h/shNK6Adwh43UWibU16YQ FIeqNMKLx5DiuDrTVEMh2IisUN7NjezZD4lWQ=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=hA9o2T0gRzvlyjoEACmxSw8NZn/wCzXwJxdY/gUYGru4htO+HWPFlay7ESNCVCvr0v 9ZydZEHlgDCupztBDIujBKbbOklOjAFXnakFG9ByxGEjWJAXeeqGszqH3b3p7Elvni08 9O4t4elaU100DXkgmpeQEIig16o2jOcuhxuYU=

Oops, good point, I didn't know/forgot that you can't define arbitrary symbols as operators in C++

I also didn't know that .* was already an operator that can't be overloaded....

guess that answers my (stupid) question :-P

thanks!

-=Abe

On Sat, Aug 28, 2010 at 4:01 PM, Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Abe Bachrach wrote:

> [...]

> In my mind, it would seem like having BOTH the verbose .cwise() and theNice idea, but you can't overload operator.*

> concise .* type operators for things like multiplication would make sense.

http://en.wikipedia.org/wiki/Operators_in_C_and_C++#Member_and_pointer_operators

Christoph

--

----------------------------------------------

Dipl.-Inf. Christoph Hertzberg

Cartesium 0.051

Universität Bremen

Enrique-Schmidt-Straße 5

28359 Bremen

Tel: (+49) 421-218-64252

----------------------------------------------

**Follow-Ups**:**Re: [eigen] cwise operator vs matlab's .* notation***From:*Will S

**References**:**[eigen] cwise operator vs matlab's .* notation***From:*Abe Bachrach

**Re: [eigen] cwise operator vs matlab's .* notation***From:*Christoph Hertzberg

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] cwise operator vs matlab's .* notation** - Next by Date:
**Re: [eigen] cwise operator vs matlab's .* notation** - Previous by thread:
**Re: [eigen] cwise operator vs matlab's .* notation** - Next by thread:
**Re: [eigen] cwise operator vs matlab's .* notation**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |