Re: [math] DfpField

2020-08-19 Thread schophil
Hi, Thank you for the answer. I can indeed have an instance per thread. I was just wondering if it was thread safe. Having one instance is easier to manage, especially with DI frameworks. As for the use case. I actually need to solve an ODE. I was afraid of using plain double's since I know

Re: [math] DfpField

2020-08-19 Thread Gilles Sadowski
Hi. 2020-08-19 8:09 UTC+02:00, schophil : > Hi, > > I have a question regarding the use of DfpField. > > Is an instance of DfpField thread safe? Personally I don't know. Sorry. I've just looked at some of the code, and there is an occurrence of the "synchronized" keyword; so it seems that

[math] DfpField

2020-08-19 Thread schophil
Hi, I have a question regarding the use of DfpField. Is an instance of DfpField thread safe? Can I use a single instance to perform Dfp calculations in different threads? I have looked at the code of Dfp and I am a bit worried by the calls to DfpField.setIEEEFlagsBits(). Can I just set the