Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
c7867d8b
Commit
c7867d8b
authored
May 14, 2020
by
Martin Reinecke
Browse files
nitpicking
parent
0cb2d984
Pipeline
#74920
passed with stages
in 25 minutes and 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c7867d8b
...
@@ -11,14 +11,14 @@ Interface change in EndomorphicOperator.draw_sample()
...
@@ -11,14 +11,14 @@ Interface change in EndomorphicOperator.draw_sample()
=====================================================
=====================================================
Both complex-valued and real-valued Gaussian probability distributions have
Both complex-valued and real-valued Gaussian probability distributions have
h
ermitian and positive endomorphisms as covariance. Just by looking at an
H
ermitian and positive endomorphisms as covariance. Just by looking at an
endomorphic operator itself it is not clear whether it is viewed as covariance
endomorphic operator itself it is not clear whether it is viewed as covariance
for real or complex Gaussians when a sample of the respective distribution shall
for real or complex Gaussians when a sample of the respective distribution shall
be drawn. Therefore, we introduce the method `draw_sample_with_dtype()` which
be drawn. Therefore, we introduce the method `draw_sample_with_dtype()` which
needs to be given the data type of the probability distribution. This function
needs to be given the data type of the probability distribution. This function
is implemented for all operators which actually draw random numbers
is implemented for all operators which actually draw random numbers
(`DiagonalOperator` and `ScalingOperator`). The class `SamplingDtypeSetter` acts
(`DiagonalOperator` and `ScalingOperator`). The class `SamplingDtypeSetter` acts
as a wrapper for th
ese
kind of operators in order to fix the data type of the
as a wrapper for th
is
kind of operators in order to fix the data type of the
distribution. Samples from these operators can be drawn with `.draw_sample()`.
distribution. Samples from these operators can be drawn with `.draw_sample()`.
In order to dive into those subtleties I suggest running the following code and
In order to dive into those subtleties I suggest running the following code and
playing around with the dtypes.
playing around with the dtypes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment