warp.fem.borrow_temporary_like#

warp.fem.borrow_temporary_like(array, temporary_store)[source]#

Borrows and returns a temporary array with the same attributes as another array or temporary.

Parameters:
  • array (array) – Warp or temporary array to read the desired attributes from

  • temporary_store (TemporaryStore | None) – the shared pool to borrow the temporary from. If temporary_store is None, the global default temporary store, if set, will be used.

Return type:

array