TemporaryIndices - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Cache

  

TemporaryIndices

  

return a sequence of the temporary indices

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

TemporaryIndices( cache )

Parameters

cache

-

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

Description

• 

The TemporaryIndices command returns the temporary indices 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 indices from that table are returned.  If the procedure does not have a remember table, NULL is returned.

• 

TemporaryIndices returns the indices in same format as indices, that is, a sequence of lists where the contents of each list is the key of a temporary entry from the table.

• 

The TemporaryEntries command can be used to get the values of the temporary entries.

• 

For more information on cache tables, see Cache Package.

Examples

> 

c1≔Cache⁡

c1≔Cache⁡512

(1)
> 

c11≔2

c11≔2

(2)
> 

c12≔3

c12≔3

(3)
> 

Cache:-TemporaryEntries⁡c1

2,3

(4)
> 

Cache:-TemporaryIndices⁡c1

1,2

(5)
> 

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

p ≔ procxoptioncache;x^2end proc

(6)
> 

p⁡2

4

(7)
> 

p⁡3

9

(8)
> 

Cache:-TemporaryEntries⁡p

4,9

(9)
> 

Cache:-TemporaryIndices⁡p

2,3

(10)

See Also

Cache

Cache Package

Cache[AddPermanent]

Cache[AddTemporary]

Cache[PermanentEntries]

Cache[PermanentIndices]

Cache[RemovePermanent]

Cache[RemoveTemporary]

Cache[Resize]

Cache[TemporaryEntries]

option cache