Numerical C++ Library Concepts
TWiki Guest (guest)
Logout
Numerical C++ Library Concepts
IT Services
ISG Blog
IntraMATH
Contact
Login
Keyword or person
News
About us
People
People
Publications
Gallery
Applications
Installation
How to get started
Tutorials
Class documentation
ETH Zurich
D-MATH
wiki@math
Concepts
extremaTest.hh
Go to the documentation of this file.
1
9
#ifndef extremaTest_hh
10
#define extremaTest_hh
11
12
#include "
hp2D/extrema.hh
"
13
#include <
optimization.h
>
14
#include <
ap.h
>
15
#include "
hp2D.hh
"
16
#include "
basics/testcase.hh
"
17
18
19
namespace
test
{
20
21
using
concepts::Real
;
22
using
concepts::Real2d
;
23
24
//*************************************************** ExtremaTest **************************
25
26
class
ExtremaTest
:
public
TestCase
{
27
public
:
28
//virtual ~minMaxTest() {}
29
virtual
void
run
();
30
31
// testCase for a constant function, max = min = random value between 0 and 1
32
void
testCase1_
();
33
34
// testCase for piecewise constant function on a mesh of four cells
35
void
testCase2_
();
36
37
// testCase for function f = (4*x^2-4*x)*(1-y), max = 0.0 , min = -1.0
38
void
testCase3_
();
39
40
//TestCase for function f = cos(pi*x)*cos(pi*y), max = 1.0 , min = -1.0
41
void
testCase4_
();
42
43
};
44
45
}
//namespace test
46
47
48
49
#endif //minMaxTest_hh
test::TestCase
Base class for tests.
Definition:
testcase.hh:92
test::ExtremaTest::testCase4_
void testCase4_()
testcase.hh
concepts::Real2d
Point< Real, 2 > Real2d
Definition:
vectorsMatricesForward.hh:18
test::ExtremaTest::testCase2_
void testCase2_()
test
Unit tests.
Definition:
testcase.hh:66
ap.h
hp2D.hh
optimization.h
test::ExtremaTest::run
virtual void run()
Runs the tests. Must be overwritten by the specialization.
test::ExtremaTest
Definition:
extremaTest.hh:26
test::ExtremaTest::testCase1_
void testCase1_()
extrema.hh
test::ExtremaTest::testCase3_
void testCase3_()
concepts::Real
double Real
Type normally used for a floating point number.
Definition:
typedefs.hh:36
Page URL:
http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020
Eidgenössische Technische Hochschule Zürich