Skip to content
Snippets Groups Projects
Commit e181b7a1 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Whitespace

parent 5066f238
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
typedef typename NonlinearityType::VectorType VectorType;
typedef typename NonlinearityType::MatrixType MatrixType;
MyDirectionalConvexFunction(double A, double b, NonlinearityType const& phi,
const VectorType& u, const VectorType& v)
MyDirectionalConvexFunction(double A, double b, NonlinearityType const &phi,
VectorType const &u, VectorType const &v)
: A(A), b(b), phi_(phi), u_(u), v_(v), temp_u_(u) {
phi_.directionalDomain(u_, v_, dom_);
}
......@@ -20,7 +20,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
double linearPart() const { return b; }
void subDiff(double x, Interval<double>& D) const {
void subDiff(double x, Interval<double> &D) const {
temp_u_ = u_;
temp_u_.axpy(x, v_);
phi_.directionalSubDiff(temp_u_, v_, D);
......@@ -28,7 +28,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
D[1] += A * x - b;
}
void domain(Interval<double>& domain) const {
void domain(Interval<double> &domain) const {
domain[0] = this->dom_[0];
domain[1] = this->dom_[1];
}
......@@ -37,11 +37,11 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
double b;
private:
NonlinearityType const& phi_;
const VectorType& u_;
const VectorType& v_;
NonlinearityType const &phi_;
VectorType const &u_;
VectorType const &v_;
mutable VectorType temp_u_;
VectorType mutable temp_u_;
Interval<double> dom_;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment