I have a very simple function which I\'m sure can be improved. My goal is to create a matrix which is a chain of tensors products of one particular matrix. My current solution i