Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley committed Jun 23, 2022
1 parent 10ff876 commit 22c0fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Distribution.idr
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Distribution Gaussian where
||| **NOTE** `cdf` is implemented only for univariate `Gaussian`.
export
ClosedFormDistribution [1] Gaussian where
sample {n} (MkGaussian {d} mean cov) key =
sample (MkGaussian mean cov) key =
pure $ expand 2 $ (broadcast mean + cholesky (squeeze cov) @@ !(normal key)).T

pdf (MkGaussian {d} mean cov) x =
Expand Down
5 changes: 1 addition & 4 deletions src/Tensor.idr
Original file line number Diff line number Diff line change
Expand Up @@ -1262,10 +1262,7 @@ inf = fromDouble (1.0 / 0.0)
||| @bound A bound of the samples. See full docstring for details.
||| @bound' A bound of the samples. See full docstring for details.
export
uniform :
{shape : _} ->
(bound, bound' : Tensor shape F64) ->
Rand (Tensor shape F64)
uniform : {shape : _} -> (bound, bound' : Tensor shape F64) -> Rand (Tensor shape F64)
uniform bound bound' (MkTensor keyGraph key) =
let MkTensor minvalGraph minval = min bound bound'
MkTensor maxvalGraph maxval = max bound bound'
Expand Down

0 comments on commit 22c0fee

Please sign in to comment.