Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
general [2014/11/05 11:07] – [Most Important Commands] gawrilow | general [2019/01/22 15:01] – external edit 127.0.0.1 |
---|
The complete list of commands related to polymake "big" objects can be found in the [[scripting:start#Object|reference part]]. | The complete list of commands related to polymake "big" objects can be found in the [[scripting:start#Object|reference part]]. |
| |
==== Loading and saving arbitrary data ==== | |
| |
Apart from the full objects, you can also persistently store arbitrary data structures like matrices or graphs. There are two commands working with data pieces: | |
$x=load_data("filename"); | |
save_data($x, "filename", "description"); | |
| |
The description is optional; it can be an arbitrary text, even stretching over several lines. | |
==== Switching between applications ==== | ==== Switching between applications ==== |
| |
? ''%%reset_custom $name{key};%%'' | ? ''%%reset_custom $name{key};%%'' |
:: restore the default value | :: restore the default value |
.. Both commands come into effect immediately, but also mark the variable as changed, so that the new value will also appear in your personal customization file after the session end. You can also change the custom variables for the rest of current session only, without updating the file -- by a plain assignment. If you want to change some value temporarily, just to influence the evaluation of the next expression, write a ''local'' keyword in front of the assignment. (It's not polymake's black magic, just normal perl operator.) | .. Both commands come into effect immediately, but also mark the variable as changed, so that the new value will also appear in your personal customization file after the session end. You can also change the custom variables for the rest of current session only, without updating the file -- by a plain assignment. If you want to change some value temporarily, just to influence the evaluation of the next expression, write the ''local'' keyword instead of ''set_custom''. (It's not polymake's black magic, just normal perl operator.) |
| |
==== Preferences ==== | ==== Preferences ==== |