Registered Member
|
I wish to construct a matrix by applying a function to all of another matrix's coefficients. Is there a more efficient/elegant way to do this other than writing a for loop on the input matrix? I can't seem to find a UnaryFunctor or BinaryFunctor or alike.
|
Registered Member
|
Does unaryExpr help? See http://eigen.tuxfamily.org/dox-devel/cl ... 7d104194c8 .
|
Registered Member
|
thanks I had only seen the nullaryOp...
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]