return a sequence of the temporary entries - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Procedures and Functions : Cache Package : Cache/TemporaryEntries

Cache[TemporaryEntries] - return a sequence of the temporary entries

Calling Sequence

TemporaryEntries( cache )

Parameters

cache

-

cache table or procedure: the object whose entries are to be returned

Description

• 

The TemporaryEntries command returns the temporary entries of the given cache table.  The cache table can be given directly as cache, or cache can refer to a procedure that has, or can have, a cache remember table.  If such a procedure is given and it has a cache remember table, the temporary entries from that table are returned.  If the procedure does not have a remember table, NULL is returned.

• 

TemporaryEntries returns the entries in same format as entries, that is a sequence of lists where the contents of each list is the value of a temporary entry from the table.

• 

The TemporaryIndices command can be used to get the indices of the temporary entries.

• 

For more information on cache tables, see Cache Package.

Examples

c1:=Cache

c1:=Cache512

(1)

c11:=2

c11:=2

(2)

c12:=3

c12:=3

(3)

Cache:-TemporaryEntriesc1

2,3

(4)

Cache:-TemporaryIndicesc1

1,2

(5)

p := proc( x ) option cache; x^2; end proc;

p:=procxoptioncache;x^2end proc

(6)

p2

4

(7)

p3

9

(8)

Cache:-TemporaryEntriesp

4,9

(9)

Cache:-TemporaryIndicesp

2,3

(10)

See Also

Cache Package, Cache[AddTemporary], Cache[PermanentEntries], Cache[PermanentIndices], Cache[RemovePermanent], Cache[TemporaryIndices]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam