Home Online Manual
Top
Back: division
Forward: eliminate
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.25 dump

Syntax:
dump ( link_expression )
Type:
none
Purpose:
dumps (i.e., writes in a "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 ssi 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 Standard **
==> // ** redefining stdfglm **
==> // ** redefining stdhilb **
==> // ** redefining quotientList **
==> // ** redefining par2varRing **
==> // ** redefining hilbRing **
==> // ** redefining qslimgb **
==> // ** redefining groebner **
==> // ** redefining res **
==> // ** redefining quot **
==> // ** redefining quotient1 **
==> // ** redefining quotient2 **
==> // ** redefining quotient3 **
==> // ** redefining quotient5 **
==> // ** redefining quotient4 **
==> // ** redefining sprintf **
==> // ** redefining printf **
==> // ** redefining fprintf **
==> // ** redefining weightKB **
==> // ** redefining datetime **
==> // ** redefining max **
==> // ** redefining min **
  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.