Question
In MatLab/Octave
, I have the statement x(isnan(x)) = 0
. I am porting this over to ILNumerics
in C#
. I am having trouble finding the ILNumerics
equivalent to the MatLab/Octave
statement mentioned.
In our case, x
is a 2x2
array.
What we've tried
noNaNDataValues = dataValues[ILMath.isnan(dataValues)] = 0.0;
wheredataValues
is anILArray<double>
- We have resorted to standard
C#
for loops and that works fine. But we would rather useILNumerics
considering how much we've invested in it already.