Apply the optimisations found on the research paper work indicated above and replicate their experiments.
Q1: 1. Get the computation right on the host (serial) for a very small example. Vector x = {-2.1, -1.3, -0.4, 1.9, 5.1, 6.2}. Time it. 2. Replicate the host…