warp.fem.TemporaryStore#
- class warp.fem.TemporaryStore[source]#
Shared pool of temporary arrays that will be persisted and reused across invocations of
warp.femfunctions.A
TemporaryStoreinstance may either be passed explicitly towarp.femfunctions that accept such an argument, for instanceintegrate.integrate(), or can be set globally as the default store usingset_default_temporary_store().By default, there is no default temporary store, so that temporary allocations are not persisted.
Methods
__init__()add_temporary_convenience_methods(temporary)borrow(shape, dtype[, pinned, device, ...])clear()- class Pool(dtype, device, pinned)[source]#
- Parameters:
pinned (bool)
- class Deleter(pool)[source]#
- Parameters:
pool (TemporaryStore.Pool)