Tuning and terminating methods

John C. M. Nash · 2014

This chapter talks about improving the performance of computational processes. It shows an example where we can time how long it takes to generate a set of random uniform numbers. Profiling is best used on calculations we have already discovered are “slow.” The chapter shows how it is done by wrapping a call to the Rvmmin minimizer in commands that ask for a profile to be saved. It analyzes the byte-code compiler for R. The compiler package is part of the distribution but needs to be loaded or invoked via appropriate instructions when packages are installed. The chapter demonstrates the use of the minimization of the Rayleigh quotient to find the largest eigenvalue of a symmetric matrix. One of the major parts of any iterative algorithm is deciding when it is finished, or rather when the approximation to the answer we have is “good enough.”.

Read the paper · More papers on PaperTik