Premium problem56. 2D Gaussian Array

Medium Locked

Generate a generic 2-D Gaussian on an n x n grid over [-1, 1]^2 and return the array exp(-((X-mu)^2 + (Y-mu)^2) / (2*sigma^2)).

Input

n = 10, sigma = 1.0, mu = 0.0

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)