- #1
guerom00
- 93
- 0
Hello everyone,
I have a list, let's call it L1, of length N. Each element of this list is a square matrix.
I would like to :
1/ Apply MatrixExp[] to each element of L1 (I know how to do that)
2/ Multiply each element of the subsequent list _in an ordred fashion_ i.e. from element N to element 1. In this order (!) because none of the matrices commute.
To recap, I have
L1={L1[[1]],L1[[2]],...,L1[[N]]}
and want the matrix M equal to
M=MatrixExp[L1[[N]]].MatrixExp[L1[[N-1]]]...MatrixExp[L1[[1]]]
What would be a nice "one liner" which does that ?
Thanks in advance :)
I have a list, let's call it L1, of length N. Each element of this list is a square matrix.
I would like to :
1/ Apply MatrixExp[] to each element of L1 (I know how to do that)
2/ Multiply each element of the subsequent list _in an ordred fashion_ i.e. from element N to element 1. In this order (!) because none of the matrices commute.
To recap, I have
L1={L1[[1]],L1[[2]],...,L1[[N]]}
and want the matrix M equal to
M=MatrixExp[L1[[N]]].MatrixExp[L1[[N-1]]]...MatrixExp[L1[[1]]]
What would be a nice "one liner" which does that ?
Thanks in advance :)