Forgot to reshape S in fft so it can be used

This commit is contained in:
mcDandy
2025-09-03 13:38:20 +02:00
parent bb579b21ad
commit 2799c6257e
@@ -145,6 +145,7 @@ class TensorEvalVisitor(MathExprVisitor):
self.shape = time_shape
shp_time = torch.zeros(time_shape, device=self.variables.get('device', 'cpu'))
self.variables['T'] = getIndexTensorAlongDim(shp_time, 2)
self.variables['S'] = torch.full_like(shp_time, self.shape[2])
self.variables['B'] = getIndexTensorAlongDim(shp_time, 0)
self.variables['C'] = getIndexTensorAlongDim(shp_time, 1)
self.variables['R'] = torch.full_like(shp_time, self.variables['R'].flatten()[0].item())