Registered Member
|
Hi, I use repeatedly a simple predicate to find out whether a given matrix contains NaNs, and whether it contains non-NaNs (hasnan, isnan). Should be such functions considered for addition to eigen's dense base class? If so, can I do something about it? Cheers! v.
|
Moderator
|
Note that hasNan() could just be a shortcut for (A!=A).any() for arrays, and (M.array()!=M.array()).any() for matrices. That said, a dedicated unary functor would be more efficient, and yes I'd be welcome to add such functions.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]