I would like to create a function to matrix multiply (dot product) n matrices together, where n is large, for example
I know there is the 'product' function that can do this for standard multiplication but I cannot seem to find a version for dot products. I have tried using a loop but this takes forever to run when n becomes large. Is there a way around this? Thanks in advance.