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