Brookline native Matthew Brown wrote and directed “The Man Who Knew Infinity,’’ a new movie starring Jeremy Irons and “Slumdog Millionaire’’ star Dev Patel. The film tells the true story of Srinivasa Ramanujan (played by Patel), a self-taught mathematics genius from India who formed a friendship with G.H. Hardy (Irons), a professor at Trinity College in Cambridge, England. (Fun fact: Brown is an alum of Trinity College in Connecticut). The film also stars Devika Bhise, Stephen Fry, and Toby Jones. It opens April 29 and will play in select theaters across the country. Locally, it will screen April 29 at the Coolidge Corner Theatre and Kendall Square Cinema. Additional screenings are scheduled for May 6 the Coolidge and May 13 at the Amherst Cinema Arts Center in Amherst.