mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-14 01:45:35 +00:00
AsciiFile: double precision writing
This commit is contained in:
parent
9c6dedd3d6
commit
c1b8597ecc
@ -55,12 +55,15 @@ AsciiFile::~AsciiFile(void)
|
|||||||
// access //////////////////////////////////////////////////////////////////////
|
// access //////////////////////////////////////////////////////////////////////
|
||||||
void AsciiFile::save(const DMat &m, const std::string &name)
|
void AsciiFile::save(const DMat &m, const std::string &name)
|
||||||
{
|
{
|
||||||
|
const auto defaultPrec = fileStream_.precision(defaultDoublePrec);
|
||||||
|
|
||||||
checkWritability();
|
checkWritability();
|
||||||
isParsed_ = false;
|
isParsed_ = false;
|
||||||
fileStream_ << "#L latan_begin mat " << name << endl;
|
fileStream_ << "#L latan_begin mat " << name << endl;
|
||||||
fileStream_ << m.cols() << endl;
|
fileStream_ << m.cols() << endl;
|
||||||
fileStream_ << scientific << m << endl;
|
fileStream_ << scientific << m << endl;
|
||||||
fileStream_ << "#L latan_end mat " << endl;
|
fileStream_ << "#L latan_end mat " << endl;
|
||||||
|
fileStream_.precision(defaultPrec);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AsciiFile::save(const DMatSample &s, const std::string &name)
|
void AsciiFile::save(const DMatSample &s, const std::string &name)
|
||||||
|
Loading…
Reference in New Issue
Block a user