Macaulay2 » Documentation
Packages » SpecialFanoFourfolds :: store(HodgeSpecialFourfold,String)
next | previous | forward | backward | up | index | toc

store(HodgeSpecialFourfold,String) -- store a fourfold example

Description

This function stores the fourfold X so that it can later be retrieved with example(name). When no name is specified, one is chosen automatically. Examples are created via toExternalString and stored in the directory 'applicationDirectory/SpecialFanoFourfoldsExamples/'. The local archive may be inspected and managed through localExamplesArchive(). Stored examples persist across Macaulay2 sessions and preserve some previously computed internal data of the original fourfold.

i1 : X = specialFourfold random({3:{1}},0_(PP_(ZZ/65521)^5));

o1 : ProjectiveVariety, cubic fourfold in C_8
i2 : name = store X;
-- example "cf_a" successfully stored
i3 : X' = example name;
-- loading example("cf_a",1)...
-- evaluating example("cf_a",1)...
-- example("cf_a",1) ready.

o3 : ProjectiveVariety, cubic fourfold in C_8
i4 : assert(describe X == describe X')

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/SpecialFanoFourfolds/docs.m2:592:0.