CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

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

Views: 418346
1
2
4 Tool functions
3
4
5
4.1 Read and write matrix
6
7
4.1-1 4ti2Interface_Read_Matrix_From_File
8
9
4ti2Interface_Read_Matrix_From_File( arg )  function
10
Returns: a list of vectors
11
12
The argument must be a string, representing a filename of a matrix to read.
13
Numbers must be seperated by whitespace, and the first two numbers must be
14
the number of rows and columns. The function then returns the matrix as list
15
of lists.
16
17
4.1-2 4ti2Interface_Write_Matrix_To_File
18
19
4ti2Interface_Write_Matrix_To_File( arg )  function
20
Returns: nothing
21
22
First argument must be a matrix, i.e. a list of list of integers. Second
23
argument has to be a filename. The method stores the matrix in this file,
24
seperated by whitespace, line by line. The content of the file, if there is
25
any, will be deleted.
26
27
4.1-3 4ti2Interface_Cut_Vector
28
29
4ti2Interface_Cut_Vector( vec, d )  function
30
Returns: a matrix
31
32
Takes the vector vec and produces a matrix with d columns out of the entries
33
of the vector.
34
35
36