Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563500 views
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<!-- This is an automatically generated file. -->
4
<Chapter Label="Chapter_Tool_functions">
5
<Heading>Tool functions</Heading>
6
7
<Section Label="Chapter_Tool_functions_Section_Read_and_write_matrix">
8
<Heading>Read and write matrix</Heading>
9
10
<ManSection>
11
<Func Arg="arg" Name="4ti2Interface_Read_Matrix_From_File" />
12
<Returns>a list of vectors
13
</Returns>
14
<Description>
15
The argument must be a string, representing a filename of
16
a matrix to read. Numbers must be seperated by whitespace,
17
and the first two numbers must be the number of rows and columns.
18
The function then returns the matrix as list of lists.
19
</Description>
20
</ManSection>
21
22
23
<ManSection>
24
<Func Arg="arg" Name="4ti2Interface_Write_Matrix_To_File" />
25
<Returns>nothing
26
</Returns>
27
<Description>
28
First argument must be a matrix, i.e. a list of list
29
of integers.
30
Second argument has to be a filename.
31
The method stores the matrix in this file,
32
seperated by whitespace, line by line.
33
The content of the file, if there is any,
34
will be deleted.
35
</Description>
36
</ManSection>
37
38
39
<ManSection>
40
<Func Arg="vec, d" Name="4ti2Interface_Cut_Vector" />
41
<Returns>a matrix
42
</Returns>
43
<Description>
44
Takes the vector <A>vec</A> and produces a matrix
45
with <A>d</A> columns out of the entries of the
46
vector.
47
</Description>
48
</ManSection>
49
50
51
</Section>
52
53
54
</Chapter>
55
56
57