This forum has been archived. All content is frozen. Please use KDE Discuss instead.

apply function to every coefficient

Tags: None
(comma "," separated)
yannick1303
Registered Member
Posts
5
Karma
0
OS

apply function to every coefficient

Thu Jan 09, 2014 2:43 pm
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.
jitseniesen
Registered Member
Posts
204
Karma
2
yannick1303
Registered Member
Posts
5
Karma
0
OS
thanks I had only seen the nullaryOp...


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]