GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X4 [33X[0;0YTool functions[133X[101X234[1X4.1 [33X[0;0YRead and write matrix[133X[101X56[1X4.1-1 4ti2Interface_Read_Matrix_From_File[101X78[29X[2X4ti2Interface_Read_Matrix_From_File[102X( [3Xarg[103X ) [32X function9[6XReturns:[106X [33X[0;10Ya list of vectors[133X1011[33X[0;0YThe argument must be a string, representing a filename of a matrix to read.12Numbers must be seperated by whitespace, and the first two numbers must be13the number of rows and columns. The function then returns the matrix as list14of lists.[133X1516[1X4.1-2 4ti2Interface_Write_Matrix_To_File[101X1718[29X[2X4ti2Interface_Write_Matrix_To_File[102X( [3Xarg[103X ) [32X function19[6XReturns:[106X [33X[0;10Ynothing[133X2021[33X[0;0YFirst argument must be a matrix, i.e. a list of list of integers. Second22argument has to be a filename. The method stores the matrix in this file,23seperated by whitespace, line by line. The content of the file, if there is24any, will be deleted.[133X2526[1X4.1-3 4ti2Interface_Cut_Vector[101X2728[29X[2X4ti2Interface_Cut_Vector[102X( [3Xvec[103X, [3Xd[103X ) [32X function29[6XReturns:[106X [33X[0;10Ya matrix[133X3031[33X[0;0YTakes the vector [3Xvec[103X and produces a matrix with [3Xd[103X columns out of the entries32of the vector.[133X33343536