At present, users have to write clumsy for i, j, v in enumerate(enumerate(...)) loops to compute 2D arrays of complex reflection/transmission coefficients. It should be possible with a tensordot syntax to perform the appropriate matrix products. This would speed up thin film computations likely by a factor of almost 1,000x for complicated/large structures.
At present, users have to write clumsy
for i, j, v in enumerate(enumerate(...))
loops to compute 2D arrays of complex reflection/transmission coefficients. It should be possible with a tensordot syntax to perform the appropriate matrix products. This would speed up thin film computations likely by a factor of almost 1,000x for complicated/large structures.This has use in e.g. coronagraph design.