Skip to content

Commit 9240eab

Browse files
committed
fixed rbf eval
1 parent af59667 commit 9240eab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lsdo_function_spaces/core/spaces/rbf_space.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def compute_basis_matrix(self, parametric_coordinates:np.ndarray, parametric_der
8888
dist = cdist(parametric_coordinates, self.points, 'euclidean')
8989
phi = getattr(self, f'_{self.radial_function}')(dist)
9090

91+
# sum the basis functions so the total influence per evaluation point is 1
92+
phi = phi / np.sum(phi, axis=1, keepdims=True)
93+
9194
return phi
9295

9396
def _gaussian(self, x):

0 commit comments

Comments
 (0)