C++ Logo


Advanced search

[std-proposals] Add operator for element wise multiplication.

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Sat, 14 May 2022 23:54:37 +0200
Hi Patrick, if you look at the last paragraph of the Named Operator documentation, you see that you can use named operators with different precedence depending on the precedence of the delimiter. So you could define and use * // for standard operator, one of the below *dot* *cross* *elem* *outer* With * for dot product: a = b * c * d *elem* e *cross* f Or use % for the customized ones: a = b * c * d %elem% e %cross% f Best, Sebastian -- Sebastian Wittmeier

Received on 2022-05-14 21:54:39