ABSTRACT

This chapter focuses on debugging, vectorization and some other useful features of R/Python. The programs people write might include errors/bugs and debugging is a step-by-step process to find and remove the errors/bugs in order to get the desired results. Most programming languages provide the functionality of printing, which is a natural way of debugging. By trying to place print statements at different positions people may finally catch the bugs. In R, there is a function browser() which interrupts the execution and allows the inspection of the current environment. Similarly, there is a module pdb in Python that provides more debugging features. In parallel computing, automatic vectorization means a program in a scalar implementation is converted to a vector implementation which processes multiple pairs of operands simultaneously by compilers that feature auto-vectorization. Automatic vectorization may make the program run much faster in some languages like C.