Spatial tailoring of four-wave mixing via optically induced nonlinear and linear gratings in atomic vapors | Synapse