This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libstdc++: add uniform on sphere distribution


> are these dummy implementations intended?

Yes.  There is no state.  The only parameter is the dimensionality
which is a template parameter.

We do often serialize underlying helper distributions, in your case the normal distribution _M_n. While the normal distribution mean and stddev are trivial for your case (not actually needing serialization)
the normal distribution has these _M_saved, etc. shat we should store.

So I would just serialize _M_n here.

This is a great distribution.
Thanks!

Are you looking at the normal distribution equivalent of these?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]