Change Numpy Array To Tensor Calculus With Applications