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

Whitespace

parent ccaf7962
No related branches found
No related tags found
No related merge requests found
......@@ -46,19 +46,19 @@ template <int dimension> class LocalFriction {
/** Formula for the derivative:
\f{align*}{
\f{align*}{
\frac {d^2}{dz^2} H(|z|)
&= \frac d{dz} \left( H'(|z|) \otimes \frac z{|z|} \right)\\
&= H''(|z|) \frac z{|z|} \otimes \frac z{|z|}
+ H'(|z|) \left( \frac {|z| \operatorname{id} - z \otimes z/|z|}{|z|^2}
\right)\\
\right)\\
&= \frac {H''(|z|)}{|z|^2} z \otimes z
+ \frac {H'(|z|)}{|z|} \operatorname{id}
- \frac {H'(|z|)}{|z|^3} z \otimes z\\
&= \left( \frac {H''(|z|)}{|z|^2} - \frac {H'(|z|)}{|z|^3} \right) z
\otimes z
\otimes z
+ \frac {H'(|z|)}{|z|} \operatorname{id}
\f}
\f}
*/
void addHessian(VectorType const &x, MatrixType &A) const {
double const xnorm2 = x.two_norm2();
......
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