Documentation for v0.1 version (#199)
* Adding Equations, solving typos * improve _code.rst * the team rst and restuctore index.rst * fixing errors --------- Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
This commit is contained in:
committed by
Nicola Demo
parent
3f9305d475
commit
8b7b61b3bd
@@ -68,11 +68,13 @@ class Stride(object):
|
||||
direction[i] = 1
|
||||
|
||||
# creating the stride grid
|
||||
values_mesh = [torch.arange(0, i, step).float()
|
||||
for i, step in zip(domain, jumps)]
|
||||
values_mesh = [
|
||||
torch.arange(0, i, step).float() for i, step in zip(domain, jumps)
|
||||
]
|
||||
|
||||
values_mesh = [single * dim for single,
|
||||
dim in zip(values_mesh, direction)]
|
||||
values_mesh = [
|
||||
single * dim for single, dim in zip(values_mesh, direction)
|
||||
]
|
||||
|
||||
mesh = torch.meshgrid(values_mesh)
|
||||
coordinates_mesh = [x.reshape(-1, 1) for x in mesh]
|
||||
|
||||
Reference in New Issue
Block a user