summaryrefslogtreecommitdiff
path: root/stereographic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'stereographic.hpp')
-rw-r--r--stereographic.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/stereographic.hpp b/stereographic.hpp
index 8313f25..61d81c5 100644
--- a/stereographic.hpp
+++ b/stereographic.hpp
@@ -51,11 +51,7 @@ Matrix stereographicJacobian(const Vector& ζ) {
}
std::tuple<Scalar, Vector, Matrix> stereographicHamGradHess(const Tensor& J, const Vector& ζ, const Vector& z) {
- Scalar hamiltonian;
- Vector gradZ;
- Matrix hessZ;
- std::tie(hamiltonian, gradZ, hessZ) = hamGradHess(J, z);
-
+ auto [hamiltonian, gradZ, hessZ] = hamGradHess(J, z);
Matrix jacobian = stereographicJacobian(ζ);
Matrix metric = jacobian * jacobian.adjoint();