PermanentEntries - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Cache

  

PermanentEntries

  

return a sequence of the permanent entries

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

PermanentEntries( cache )

Parameters

cache

-

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

Description

• 

The PermanentEntries command returns the values of the permanent 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 values of the permanent entries from that table are returned.  If the procedure does not have a table, NULL is returned.

• 

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

• 

The PermanentIndices command can be used to get the indices of the permanent entries.

• 

For more information on cache tables, see Cache Package.

Examples

c1Cache

c1Cache512

(1)

Cache:-AddPermanentc1,x,y

Cache:-AddPermanentc1,y,z

Cache:-PermanentEntriesc1

y,z

(2)

Cache:-PermanentIndicesc1

x,y

(3)

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

pprocxoptioncache;x^2end proc

(4)

Cache:-AddPermanentp,2,2

Cache:-AddPermanentp,3,3

Cache:-PermanentEntriesp

2,3

(5)

Cache:-PermanentIndicesp

2,3

(6)

See Also

Cache

Cache Package

Cache[AddPermanent]

Cache[AddTemporary]

Cache[PermanentIndices]

Cache[RemovePermanent]

Cache[RemoveTemporary]

Cache[Resize]

Cache[TemporaryEntries]

Cache[TemporaryIndices]

option cache