cache_s_matrix

photonforge.cache_s_matrix(start)[source]

Decorator that can be used in Model.start() to cache results.

Parameters:

start (Callable[[...], object])

Return type:

Callable[[…], object]