summaryrefslogtreecommitdiff
path: root/p-spin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'p-spin.hpp')
-rw-r--r--p-spin.hpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/p-spin.hpp b/p-spin.hpp
index 4621db6..e5d4f94 100644
--- a/p-spin.hpp
+++ b/p-spin.hpp
@@ -5,15 +5,6 @@
#include "tensor.hpp"
#include "factorial.hpp"
-template <class Scalar>
-using Vector = Eigen::Matrix<Scalar, Eigen::Dynamic, 1>;
-
-template <class Scalar>
-using Matrix = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>;
-
-template <class Scalar, int p>
-using Tensor = Eigen::Tensor<Scalar, p>;
-
template <class Scalar, int p>
std::tuple<Scalar, Vector<Scalar>, Matrix<Scalar>> hamGradHess(const Tensor<Scalar, p>& J, const Vector<Scalar>& z) {
Matrix<Scalar> Jz = contractDown(J, z); // Contracts J into p - 2 copies of z.