Also, it implicitly assumes that all of the arrays are 1-D at this point. If you are going to do a bunch of assert checks, you might as well add that one, too.