Numerical methods in photonics. (2018)