Skip to content
Snippets Groups Projects
Commit 0341ced6 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[operators.matrix] avoid temporary

parent f593a8bf
No related branches found
No related tags found
No related merge requests found
Pipeline #63663 failed
...@@ -192,7 +192,7 @@ public: ...@@ -192,7 +192,7 @@ public:
<< "type = " << type << "\njacobian_options() = " << jacobian_options()); << "type = " << type << "\njacobian_options() = " << jacobian_options());
LOG__(BaseType, debug) << " adding matrix_ * jacobian_op.scaling (matrix_.sup_norm() = " << matrix_.sup_norm() LOG__(BaseType, debug) << " adding matrix_ * jacobian_op.scaling (matrix_.sup_norm() = " << matrix_.sup_norm()
<< ", jacobian_op.scaling = " << jacobian_op.scaling << ")" << std::endl; << ", jacobian_op.scaling = " << jacobian_op.scaling << ")" << std::endl;
jacobian_op.matrix() += matrix_ * jacobian_op.scaling; jacobian_op.matrix().axpy(jacobian_op.scaling, matrix_);
} // ... jacobian(...) } // ... jacobian(...)
private: private:
......
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