Check the Previous Function

man sitting in front of three computers

You are now in CallProcess_For_Iterate_All(Obj,Nums,i). Hmmmm. You go back to the previous function feeding into ReIterateThroughDataBaseGreaterThan Zero(X,YIn,Params) and you notice that there is something that looks a little off. Once some debug statements are in place you can see that there is one single NaN in a vector being passed into the function in question. The vector seems to be forming in some math in one of the functions which calls ReIterateThroughDataBaseGreater ThanZero(X,YIn,Params) and you’re not sure what is driving the strange outcome.

What do you do?

  1. Dust off a linear algebra textbook and look for numerical issues. It’s always a matrix Inversion
  2. Go up another function, what’s the input
  3. Go back, don’t think that’s it, the rest of the code works fine.

Published by B McGraw

B McGraw has lived a long and successful professional life as a software developer and researcher. After completing his BS in spaghetti coding at the department of the dark arts at Cranberry Lemon in 2005 he wasted no time in getting a masters in debugging by print statement in 2008 and obtaining his PhD with research in screwing up repos on Github in 2014. That's when he could finally get paid. In 2018 B McGraw finally made the big step of defaulting on his student loans and began advancing his career by adding his name on other people's research papers after finding one grammatical mistake in the Peer Review process.

Leave a Reply

%d bloggers like this: