Subject: saving/loading a hashed array from/to file
From: andre maute
Date: Sat, 10 Mar 2012 02:13:09 +0100
Hi list,
as the subject says, suppose we have the following maxima file
with a very simple hashed array function F
------------- hashed.max ------------
display2d : false;
F[k] := block(print(" F",k),return(k*11));
for k : 1 thru 4 do block(
h : F[k],
print(k,h)
);
print("----");
for k : 1 thru 4 do block(
h : F[k],
print(k,h)
);
for k : 1 thru 4 do block(
h : F[[k,k]],
print(k,h)
);
print("----");
for k : 1 thru 4 do block(
h : F[[k,k]],
print(k,h)
);
print(F);
print(arrayinfo(F));
print(listarray(F));
------------- hashed.max ------------
Question:
arrayinfo and listarray give the computed values,
Is it possible to save this data to a file and
and load it again for a later computation?
Any hint where I should look in the documentation?
Best regards
Andre