stripe / rainier

Bayesian inference in Scala.
https://rainier.fit
Apache License 2.0
432 stars 51 forks source link

Move math ops to Decimal #437

Closed avibryant closed 4 years ago

avibryant commented 4 years ago

This consolidates all the logic around constant arithmetic ops into Decimal (instead of spreading it between Real and Decimal), including moving Infinity and NegInfinity to be Decimal instances. This is in preparation for giving Placeholder vectors of Decimal and doing partial eval of them.

avibryant commented 4 years ago

cc @andrew-stripe for visibility, self -merging