From 90a4984deab6e3b33b5511ab1d9ac35ef0cc9093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 15 May 2013 09:22:45 +0200 Subject: [PATCH] Fix multiple symbol issue. --- AutoDiffHelpers.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AutoDiffHelpers.hpp b/AutoDiffHelpers.hpp index f48b6e165..740e8b8ba 100644 --- a/AutoDiffHelpers.hpp +++ b/AutoDiffHelpers.hpp @@ -286,6 +286,8 @@ superset(const Eigen::Array& x, /// Construct square sparse matrix with the /// elements of d on the diagonal. +/// Need to mark this as inline since it is defined in a header and not a template. +inline AutoDiff::ForwardBlock::M spdiag(const AutoDiff::ForwardBlock::V& d) {