Tensor Product In Python What Is A Function