We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab8b3a commit c609d1eCopy full SHA for c609d1e
deepxde/geometry/pointcloud.py
@@ -1,6 +1,7 @@
1
import numpy as np
2
3
from .geometry import Geometry
4
+from .. import config
5
from ..data import BatchSampler
6
7
@@ -12,7 +13,7 @@ class PointCloud(Geometry):
12
13
"""
14
15
def __init__(self, points):
- self.points = np.asarray(points)
16
+ self.points = np.asarray(points, dtype=config.real(np))
17
self.num_points = len(points)
18
super().__init__(
19
len(points[0]),
0 commit comments