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 ab5a022 commit ba6d1dfCopy full SHA for ba6d1df
cuqi/distribution/_uniform.py
@@ -75,15 +75,7 @@ class UnboundedUniform(Distribution):
75
Geometry object is given, its par_dim attribute is used.
76
"""
77
def __init__(self, geometry, is_symmetric=True, **kwargs):
78
- if isinstance(geometry, int):
79
- self.low = np.full(geometry, -np.inf)
80
- self.high = np.full(geometry, np.inf)
81
- elif isinstance(geometry, Geometry):
82
- self.low = np.full(geometry.par_dim, -np.inf)
83
- self.high = np.full(geometry.par_dim, np.inf)
84
- else:
85
- raise ValueError("geometry must be an integer or a cuqi Geometry")
86
- super().__init__(is_symmetric=is_symmetric, **kwargs)
+ super().__init__(geometry=geometry, is_symmetric=is_symmetric, **kwargs)
87
88
def logpdf(self, x):
89
0 commit comments