GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
<?xml version="1.0" encoding="UTF-8"?>12<!-- This is an automatically generated file. -->3<Chapter Label="Chapter_Tool_functions">4<Heading>Tool functions</Heading>56<Section Label="Chapter_Tool_functions_Section_Read_and_write_matrix">7<Heading>Read and write matrix</Heading>89<ManSection>10<Func Arg="arg" Name="4ti2Interface_Read_Matrix_From_File" />11<Returns>a list of vectors12</Returns>13<Description>14The argument must be a string, representing a filename of15a matrix to read. Numbers must be seperated by whitespace,16and the first two numbers must be the number of rows and columns.17The function then returns the matrix as list of lists.18</Description>19</ManSection>202122<ManSection>23<Func Arg="arg" Name="4ti2Interface_Write_Matrix_To_File" />24<Returns>nothing25</Returns>26<Description>27First argument must be a matrix, i.e. a list of list28of integers.29Second argument has to be a filename.30The method stores the matrix in this file,31seperated by whitespace, line by line.32The content of the file, if there is any,33will be deleted.34</Description>35</ManSection>363738<ManSection>39<Func Arg="vec, d" Name="4ti2Interface_Cut_Vector" />40<Returns>a matrix41</Returns>42<Description>43Takes the vector <A>vec</A> and produces a matrix44with <A>d</A> columns out of the entries of the45vector.46</Description>47</ManSection>484950</Section>515253</Chapter>54555657