Teuchos: move SetScientific to Core
Created by: ibaned
@trilinos/teuchos @trilinos/tpetra @trilinos/belos @trilinos/anasazi @CamelliaDPG
Description
This functionality to set the precision of a C++ stream such no losses are incurred for floating point values, and a convenient scope guard for it, seem general enough to be take out of the MatrixMarket sub-package. Anecdotally, I have an application that wants to use this, but it seems excessive to require it to depend on MatrixMarket.
Although I left a backward-compatibility header in the code, I did take the liberty of updating the usage of this class in the following packages:
- Anasazi
- Belos
- Tpetra
Motivation and Context
This is motivated by the desire to use this class in a lightweight application without depending on the MatrixMarket
subpackage. It also makes sense from a design perspective, since dealing with floating point formatting to a stream is useful for more than just matrix data structures.
How Has This Been Tested?
A small subset of Trilinos was compiled as a spot check (only up to Tpetra). Will rely on automatic PR testing.