Add spdiag() prototype to silence GCC 4.6 warning.

GCC's flag -Wmissing-declarations requires that a valid prototype
exist for non-template (global) functions prior to the corresponding
function definition.
This commit is contained in:
Bård Skaflestad 2013-05-15 09:34:59 +02:00
parent 959f7cbcac
commit c0dead5e97

View File

@ -286,6 +286,9 @@ superset(const Eigen::Array<Scalar, Eigen::Dynamic, 1>& x,
/// Construct square sparse matrix with the
/// elements of d on the diagonal.
AutoDiff::ForwardBlock<double>::M
spdiag(const AutoDiff::ForwardBlock<double>::V& d);
AutoDiff::ForwardBlock<double>::M
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
{