Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
podlesny
dune-tectonic
Commits
095fc4ab
Commit
095fc4ab
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
FiniteScalarIncreasingConvexFunction->NiceFunction
parent
89d10adb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/Makefile.am
+1
-1
1 addition, 1 deletion
src/Makefile.am
src/mynonlinearity.hh
+1
-1
1 addition, 1 deletion
src/mynonlinearity.hh
src/nicefunction.hh
+5
-6
5 additions, 6 deletions
src/nicefunction.hh
src/samplefunctional.hh
+1
-1
1 addition, 1 deletion
src/samplefunctional.hh
with
8 additions
and
9 deletions
src/Makefile.am
+
1
−
1
View file @
095fc4ab
...
...
@@ -7,7 +7,7 @@ noinst_PROGRAMS = \
test_gradient_method_SOURCES
=
\
test-gradient-method.cc
\
mynonlinearity.hh
\
finitescalarincreasingconvex
function.hh
\
nice
function.hh
\
samplefunctional.hh
check-am
:
...
...
This diff is collapsed.
Click to expand it.
src/mynonlinearity.hh
+
1
−
1
View file @
095fc4ab
...
...
@@ -10,7 +10,7 @@
#include
<limits>
#include
"
finitescalarincreasingconvex
function.hh"
#include
"
nice
function.hh"
namespace
Dune
{
template
<
int
dimension
,
class
OuterFunction
=
Dune
::
TrivialFunction
>
...
...
This diff is collapsed.
Click to expand it.
src/
finitescalarincreasingconvex
function.hh
→
src/
nice
function.hh
+
5
−
6
View file @
095fc4ab
/* -*- mode:c++; mode:semantic -*- */
#ifndef
FINITE_SCALAR_INCREASING_CONVEX
_FUNCTION_HH
#define
FINITE_SCALAR_INCREASING_CONVEX
_FUNCTION_HH
#ifndef
NICE
_FUNCTION_HH
#define
NICE
_FUNCTION_HH
#include
<dune/common/function.hh>
namespace
Dune
{
class
FiniteScalarIncreasingConvexFunction
:
public
VirtualFunction
<
double
,
double
>
{
class
NiceFunction
:
public
VirtualFunction
<
double
,
double
>
{
public:
virtual
double
leftDifferential
(
const
double
s
)
const
=
0
;
virtual
double
rightDifferential
(
const
double
s
)
const
=
0
;
};
class
SampleFunction
:
public
FiniteScalarIncreasingConvex
Function
{
class
SampleFunction
:
public
Nice
Function
{
public:
void
evaluate
(
const
double
&
x
,
double
&
y
)
const
{
y
=
(
x
<
1
)
?
x
:
(
2
*
x
-
1
);
...
...
@@ -24,7 +23,7 @@ class SampleFunction : public FiniteScalarIncreasingConvexFunction {
double
rightDifferential
(
const
double
s
)
const
{
return
(
s
<
1
)
?
1
:
2
;
}
};
class
TrivialFunction
:
public
FiniteScalarIncreasingConvex
Function
{
class
TrivialFunction
:
public
Nice
Function
{
public:
void
evaluate
(
const
double
&
x
,
double
&
y
)
const
{
y
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
src/samplefunctional.hh
+
1
−
1
View file @
095fc4ab
...
...
@@ -11,7 +11,7 @@
#include
<dune/tnnmg/problem-classes/directionalconvexfunction.hh>
#include
"mynonlinearity.hh"
#include
"
finitescalarincreasingconvex
function.hh"
#include
"
nice
function.hh"
namespace
Dune
{
template
<
int
dimension
,
class
Function
=
TrivialFunction
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment