Currently trying to figure out how to calculate least squares with higher dimension matrices. The spec that I have is the following: 2 ndarrays of size n by x by y called A, B r