Skip to content

Commit

Permalink
Optimizer headers import Eigen
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwolaeth committed Jun 2, 2023
1 parent e4cdb54 commit a4c3651
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 23 deletions.
5 changes: 1 addition & 4 deletions inst/include/LBFGSB.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
#define LBFGSPP_LBFGSB_H

#include <vector>
// #include <Eigen/Core>
#include <Rcpp.h>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>
#include "LBFGSpp/Param.h"
#include "LBFGSpp/BFGSMat.h"
#include "LBFGSpp/Cauchy.h"
Expand Down
4 changes: 1 addition & 3 deletions inst/include/LBFGSpp/BFGSMat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#define LBFGSPP_BFGS_MAT_H

#include <vector>
// #include <Eigen/Core>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>
#include "BKLDLT.h"

/// \cond
Expand Down
5 changes: 1 addition & 4 deletions inst/include/LBFGSpp/BKLDLT.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
#define LBFGSPP_BK_LDLT_H

#include <vector>
#include <Rcpp.h>
// #include <Eigen/Core>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>

/// \cond

Expand Down
5 changes: 1 addition & 4 deletions inst/include/LBFGSpp/LineSearchMoreThuente.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#ifndef LBFGSPP_LINE_SEARCH_MORE_THUENTE_H
#define LBFGSPP_LINE_SEARCH_MORE_THUENTE_H

// #include <Eigen/Core>
#include <Rcpp.h>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>
#include "LBFGSpp/Param.h"

namespace LBFGSpp {
Expand Down
5 changes: 1 addition & 4 deletions inst/include/LBFGSpp/Param.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#ifndef LBFGSPP_PARAM_H
#define LBFGSPP_PARAM_H

// #include <Eigen/Core>
#include <Rcpp.h>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>

namespace LBFGSpp {

Expand Down
5 changes: 1 addition & 4 deletions inst/include/LBFGSpp/SubspaceMin.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
#ifndef LBFGSPP_SUBSPACE_MIN_H
#define LBFGSPP_SUBSPACE_MIN_H

#include <stdexcept>
#include <vector>
// #include <Eigen/Core>
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include <Eigen/Core>
#include "BFGSMat.h"

/// \cond
Expand Down

0 comments on commit a4c3651

Please sign in to comment.