Re: [eigen] Scalar operation |

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

Am 09.02.2015 um 09:53 schrieb Matwey V. Kornilov:

Hi,
What is the recommended way to perform Y = a * X + b ? where a and b are
scalars and X is Matrix or Vector. Now I use unaryExpr, but think that
it is odd.

I'm afraid, I don't understand your question. Why not just write
Y = a * X + b;
Christoph
--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen
Tel: +49 (421) 218-64252
----------------------------------------------