Analog Optical Computing Using Nonlinear Optics and Photonics