From 0a304c160e2b79ca37aa80758cf4ca230fe02d8f Mon Sep 17 00:00:00 2001 From: "See.Looooo" Date: Sun, 17 Sep 2023 19:48:17 +0800 Subject: [PATCH] Update function_spaces.py bug here --- deepxde/data/function_spaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepxde/data/function_spaces.py b/deepxde/data/function_spaces.py index b0197bbb1..34eb7d19c 100644 --- a/deepxde/data/function_spaces.py +++ b/deepxde/data/function_spaces.py @@ -117,7 +117,7 @@ def random(self, size): return 2 * self.M * np.random.rand(size, self.N) - self.M def eval_one(self, feature, x): - return np.polynomial.chebyshev.chebval(2 * x - 1, feature) + return np.polynomial.chebyshev.chebval(2 * x - 1, feature.T).astype(config.real(np)) def eval_batch(self, features, xs): return np.polynomial.chebyshev.chebval(2 * np.ravel(xs) - 1, features.T).astype(config.real(np))