KASKADE 7 development version
Classes | Namespaces | Functions
check_derivative.hh File Reference
#include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include <boost/mpl/size.hpp>
#include <boost/lexical_cast.hpp>
#include "algorithm/dune_bridge.hh"
#include "utilities/linalg/scalarproducts.hh"

Go to the source code of this file.

Classes

struct  Kaskade::XMLHelper::XMLBlock
 
class  Kaskade::DerivativeChecker< Functional, checkD1, SparseInt >
 Class that checks the derivatives of a functional at a linearization point. More...
 

Namespaces

namespace  Kaskade
 
 
namespace  Kaskade::XMLHelper
 Some helper's for a correct indentation of XML-code.
 
namespace  Kaskade::DerivativeCheck
 
namespace  Kaskade::DerivativeCheck::Private
 

Functions

std::string Kaskade::XMLHelper::getXMLIndent ()
 
template<class SparseInt >
void Kaskade::DerivativeCheck::Private::writeConnectivity (std::ofstream &file, SparseInt row, SparseInt col, SparseInt numRows)
 
template<class Assembler , class Functional , int firstBlock = 0, int lastBlock = Functional::AnsatzVars::noOfVariables>
Functional::Scalar Kaskade::DerivativeCheck::d1 (Assembler &assembler, Functional const &f, typename Functional::AnsatzVars::VariableSet &x, typename Functional::Scalar tolerance=1e-6, typename Functional::Scalar increment=1e-12, bool toFile=false, std::string const &filename=std::string("d1error"))
 
template<class Assembler , class Functional , int firstRow = 0, int lastRow = Functional::TestVars::noOfVariables, int firstCol = 0, int lastCol = Functional::AnsatzVars::noOfVariables>
Functional::Scalar Kaskade::DerivativeCheck::d2 (Assembler &assembler, Functional const &f, typename Functional::AnsatzVars::VariableSet const &x, typename Functional::Scalar increment=1e-12, typename Functional::Scalar tolerance=1e-6, bool toFile=false, std::string const &savefilename=std::string("d2error"))
 
template<class Vector >
void Kaskade::DerivativeCheck::vectorToVTK (Vector const &vec, std::string savefilename=std::string("d1error"))
 
template<class Scalar , class SparseInt >
void Kaskade::DerivativeCheck::matrixToVTK (MatrixAsTriplet< Scalar, SparseInt > const &matrix, std::string savefilename=std::string("d2error"))