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 { ...@@ -10,8 +10,8 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
typedef typename NonlinearityType::VectorType VectorType; typedef typename NonlinearityType::VectorType VectorType;
typedef typename NonlinearityType::MatrixType MatrixType; typedef typename NonlinearityType::MatrixType MatrixType;
MyDirectionalConvexFunction(double A, double b, NonlinearityType const& phi, MyDirectionalConvexFunction(double A, double b, NonlinearityType const &phi,
const VectorType& u, const VectorType& v) VectorType const &u, VectorType const &v)
: A(A), b(b), phi_(phi), u_(u), v_(v), temp_u_(u) { : A(A), b(b), phi_(phi), u_(u), v_(v), temp_u_(u) {
phi_.directionalDomain(u_, v_, dom_); phi_.directionalDomain(u_, v_, dom_);
} }
...@@ -20,7 +20,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction { ...@@ -20,7 +20,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
double linearPart() const { return b; } 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_ = u_;
temp_u_.axpy(x, v_); temp_u_.axpy(x, v_);
phi_.directionalSubDiff(temp_u_, v_, D); phi_.directionalSubDiff(temp_u_, v_, D);
...@@ -28,7 +28,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction { ...@@ -28,7 +28,7 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
D[1] += A * x - b; D[1] += A * x - b;
} }
void domain(Interval<double>& domain) const { void domain(Interval<double> &domain) const {
domain[0] = this->dom_[0]; domain[0] = this->dom_[0];
domain[1] = this->dom_[1]; domain[1] = this->dom_[1];
} }
...@@ -37,11 +37,11 @@ template <class NonlinearityType> class MyDirectionalConvexFunction { ...@@ -37,11 +37,11 @@ template <class NonlinearityType> class MyDirectionalConvexFunction {
double b; double b;
private: private:
NonlinearityType const& phi_; NonlinearityType const &phi_;
const VectorType& u_; VectorType const &u_;
const VectorType& v_; VectorType const &v_;
mutable VectorType temp_u_; VectorType mutable temp_u_;
Interval<double> dom_; Interval<double> dom_;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment