MADNESS 0.10.1
testsolver.cc File Reference
#include <iostream>
#include <madness/mra/nonlinsol.h>
#include <cmath>
#include <madness/world/test_utilities.h>
Include dependency graph for testsolver.cc:

Classes

struct  F
 simple class for testing the solver More...
struct  function_allocator< T, NDIM >

Functions

F allocator ()
template<typename T, std::size_t NDIM>
Function< T, NDIM > compute_update (World &world, const Function< T, NDIM > &f)
F exact_solution ()
double inner (const F &a, const F &b)
int main (int argc, char **argv)
F residual (const F &f)
int test_simple (World &world)
template<typename T, std::size_t NDIM>
int test_with_function (World &world)
template<typename T, std::size_t NDIM>
int test_with_function_vector (World &world)
 test solver with a vector of functions

Function Documentation

◆ allocator()

F allocator ( )

References F.

◆ compute_update()

template<typename T, std::size_t NDIM>
Function< T, NDIM > compute_update ( World & world,
const Function< T, NDIM > & f )

◆ exact_solution()

F exact_solution ( )

References F.

Referenced by test_simple().

◆ inner()

double inner ( const F & a,
const F & b )

References a, and b.

◆ main()

◆ residual()

F residual ( const F & f)

References F, and f.

Referenced by test_simple().

◆ test_simple()

◆ test_with_function()

◆ test_with_function_vector()

template<typename T, std::size_t NDIM>
int test_with_function_vector ( World & world)