|
5.1.21 dump
-
Syntax:
dump ( link_expression )
-
Type:
none
-
Purpose:
dumps (i.e., writes in one "message" or "block") the state of the SINGULAR
session (i.e., all defined variables and their values) to the specified
link (which must be either an ASCII or MP link) such that a
getdump can retrieve it later on.
-
Example:
| ring r;
// write the whole session to the file dump.ascii
// in ASCII format
dump(":w dump.ascii");
kill r; // kill the basering
// reread the session from the file
// redefining everything which was not explicitly killed before
getdump("dump.ascii");
→ // ** redefining stdfglm **
→ // ** redefining stdhilb **
→ // ** redefining groebner **
→ // ** redefining res **
→ // ** redefining quot **
→ // ** redefining quot1 **
→ // ** redefining quotient0 **
→ // ** redefining quotient1 **
→ // ** redefining quotient2 **
→ // ** redefining quotient3 **
→ // ** redefining quotient5 **
→ // ** redefining quotient4 **
→ // ** redefining intersect1 **
→ // ** redefining sprintf **
→ // ** redefining printf **
→ // ** redefining fprintf **
r;
→ // characteristic : 32003
→ // number of vars : 3
→ // block 1 : ordering dp
→ // : names x y z
→ // block 2 : ordering C
|
-
Restrictions:
For ASCII links, integer matrices contained in lists are dumped as
integer list elements (and not as integer matrices), and lists of lists
are dumped as one flatted list. Furthermore, links
themselves are not dumped.
See
getdump;
link;
write.
|