Tool functions
Read and write matrix a list of vectors The argument must be a string, representing a filename of a matrix to read. Numbers must be seperated by whitespace, and the first two numbers must be the number of rows and columns. The function then returns the matrix as list of lists. nothing First argument must be a matrix, i.e. a list of list of integers. Second argument has to be a filename. The method stores the matrix in this file, seperated by whitespace, line by line. The content of the file, if there is any, will be deleted. a matrix Takes the vector vec and produces a matrix with d columns out of the entries of the vector.