I have two sets of functions with the same functionality: 1 programmed with loop, and the second with numpy operations. "Loop" is slower than numpy implementaiton.