[…] in a matrix-vector language is essential for writing efficient programs. This article describes how to convert an inefficient program with many loops into a vectorized program. A related article shows the huge performance improvements that result from …