Mathematica is smart The take-away from this is that many clever people have worked for a very long time on optimising the Mathematica’s built-in functions, such as Dot. In particular, when Dot is called, it turns the calculation over to a set of C++ libraries for numerical linear algebra known as the Intel MKL.