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

Fewer temporary variables

parent 602b9105
No related branches found
No related tags found
No related merge requests found
...@@ -41,13 +41,13 @@ class SampleFunctional { ...@@ -41,13 +41,13 @@ class SampleFunctional {
since A is symmetric. since A is symmetric.
*/ */
SmallVector tmp2; SmallVector tmp;
A_.mv(descDir, tmp2);
double const rest_A = tmp2 * descDir;
SmallVector tmp3; A_.mv(descDir, tmp);
A_.mv(x, tmp3); double const rest_A = tmp * descDir;
double const rest_b = (b_ - tmp3) * descDir;
A_.mv(x, tmp);
double const rest_b = (b_ - tmp) * descDir;
typedef MyNonlinearity<dimension, Function> MyNonlinearityType; typedef MyNonlinearity<dimension, Function> MyNonlinearityType;
MyNonlinearityType phi; MyNonlinearityType phi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment