Loading...
Searching...
No Matches
precision.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_PRECISION_HH
#define DUNE_PRECISION_HH
#include <stdlib.h>
namespace Dune {
template <class ctype = double>
class FMatrixPrecision {
public:
static ctype absolute_limit ()
{
return _absolute;
}
static void set_absolute_limit (ctype absthres)
{
_absolute = absthres;
}
private:
// just to demonstrate some state information
static ctype _absolute;
};
template <class ctype>
ctype FMatrixPrecision<ctype>::_absolute = 1E-80;
} // end namespace
#endif
Dune::_absolute
ctype FMatrixPrecision< ctype >::_absolute
Definition precision.hh:45
Dune
Dune namespace
Definition alignedallocator.hh:13
Dune::FMatrixPrecision
Precisions for calculations with FieldMatrix and FieldVector.
Definition precision.hh:25
Dune::FMatrixPrecision::absolute_limit
static ctype absolute_limit()
return threshold to declare matrix singular
Definition precision.hh:28
Dune::FMatrixPrecision::set_absolute_limit
static void set_absolute_limit(ctype absthres)
set singular threshold
Definition precision.hh:34