forked from RcppCore/RcppEigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRcppEigenForward.h
More file actions
74 lines (65 loc) · 3.18 KB
/
RcppEigenForward.h
File metadata and controls
74 lines (65 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
//
// RcppEigenForward.h: Rcpp/Eigen glue
//
// Copyright (C) 2011 Douglas Bates, Dirk Eddelbuettel and Romain Francois
//
// This file is part of RcppEigen.
//
// RcppEigen is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// RcppEigen is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with RcppEigen. If not, see <http://www.gnu.org/licenses/>.
#ifndef RcppEigen__RcppEigenForward__h
#define RcppEigen__RcppEigenForward__h
#include <iterator>
#include <RcppCommon.h>
#include <Rconfig.h>
#include <RcppEigenCholmod.h>
#include <RcppEigenStubs.h>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <Eigen/CholmodSupport>
//#include <unsupported/Eigen/AutoDiff> // causes problems redefining sign
#include <unsupported/Eigen/IterativeSolvers>
#include <unsupported/Eigen/KroneckerProduct>
#include <unsupported/Eigen/MatrixFunctions>
#include <unsupported/Eigen/NonLinearOptimization>
#include <unsupported/Eigen/NumericalDiff>
#include <unsupported/Eigen/Polynomials>
#include <unsupported/Eigen/SparseExtra> // also includes Eigen/Sparse
#include <unsupported/Eigen/Splines>
/* forward declarations */
namespace Rcpp {
/* support for wrap */
template<typename T>
SEXP wrap(const Eigen::CholmodDecomposition<Eigen::SparseMatrix<T> >& obj);
namespace traits {
/* support for as */
template<typename T> class Exporter< Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, 1> > >;
template<typename T> class Exporter< Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> > >;
template<typename T> class Exporter< Eigen::Map<Eigen::Array<T, Eigen::Dynamic, 1> > >;
template<typename T> class Exporter< Eigen::Map<Eigen::Array<T, Eigen::Dynamic, Eigen::Dynamic> > >;
template<typename T> class Exporter< Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> >;
template<typename T> class Exporter< Eigen::Matrix<T, Eigen::Dynamic, 1> >;
template<typename T> class Exporter< Eigen::Matrix<T, 1, Eigen::Dynamic> >;
template<typename T> class Exporter< Eigen::Array<T, Eigen::Dynamic, Eigen::Dynamic> >;
template<typename T> class Exporter< Eigen::Array<T, Eigen::Dynamic, 1> >;
template<typename T> class Exporter< Eigen::Array<T, 1, Eigen::Dynamic> >;
template<typename T> class Exporter< Eigen::Map<Eigen::SparseMatrix<T> > >;
template<typename T> class Exporter< Eigen::MappedSparseMatrix<T> >; // Deprecated
template<typename T> class Exporter< Eigen::SparseMatrix<T> >;
template<typename T> class Exporter< Eigen::Map<Eigen::SparseMatrix<T, Eigen::RowMajor> > >;
template<typename T> class Exporter< Eigen::MappedSparseMatrix<T, Eigen::RowMajor> >; // Deprecated
template<typename T> class Exporter< Eigen::SparseMatrix<T, Eigen::RowMajor> >;
} // namespace traits
}
#endif