As with challenge 3, your task for this challenge is to write a functioned called called MGS_Big which accepts two arguments: fname, which gives the path of a csv file (no row names, all numeric columns, column names included), and out, which is the path of a csv file to be created (same format). It should apply the modified Graham-Schmidt algorithm to fname, and save the result in out.
The machine on which the code will be run is a 2 core Ubuntu 16.04 virtual server with 4 GB of RAM and 60 GB of hard disk space. If you’re working on a highly parallel version, let me know - I can increase the number of cores available.
Unlike the previous challenge, the data set will be too large to comfortably fit into memory: your algorithm will need to find some other way to process the large matrix than to simply read it in and modify it in place. In fact, even reading in a single column is likely to cause you to run out of memory; the data set has many, many rows. Even so, the number of columns is not excessive (e.g., you can easily fit a large number of rows into memory).
Note: with some of these matrix decomposition and orthogonalization problems, different algorithms will provide the same orthonormal structure, but columns will be differently scaled by 1 or -1. This is OK for our purposes, because we generally care about the column space and the orthogonality for these problems