mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-06-13 01:11:11 +00:00
format
This commit is contained in:
parent
a7fcba0e1f
commit
5807e1d3f4
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ def enmesh(base_indices, displacements, cell_size, base_shape, offset,
|
|||
"""Multilinear enmeshing."""
|
||||
base_indices = jnp.asarray(base_indices)
|
||||
displacements = jnp.asarray(displacements)
|
||||
cell_size = jnp.array(
|
||||
cell_size, dtype=displacements.dtype)
|
||||
cell_size = jnp.array(cell_size, dtype=displacements.dtype)
|
||||
if base_shape is not None:
|
||||
base_shape = jnp.array(base_shape, dtype=base_indices.dtype)
|
||||
offset = offset.astype(base_indices.dtype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue