Skip to content

Commit bb68fef

Browse files
committed
Minor edit in README.md
1 parent 0235733 commit bb68fef

File tree

9 files changed

+4472
-135
lines changed

9 files changed

+4472
-135
lines changed

DESCRIPTION

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
Package: ceres
22
Type: Package
3-
Title: What the Package Does in One 'Title Case' Line
4-
Version: 1.0
5-
Date: 2020-07-01
6-
Author: Your Name
7-
Maintainer: SN <[email protected]>
8-
Description: One paragraph description of what the package does as one
3+
Title: An Interface to 'Ceres Solver' Linear Optimization
4+
Version: 0.1.0
5+
Date: 2022-07-13
6+
Author: Satyaprakash Nayak
7+
Maintainer: Satyaprakas Nayak <[email protected]>
8+
Description: Provides a way to interface with the Ceres Solver (http://ceres-solver.org/index.html) library. Ceres Solver is a C++ library open source C++ library for modeling and solving large, complicated optimization problems. It can be used to solve Non-linear Least Squares problems with bounds constraints and general unconstrained optimization problems. It is a mature, feature rich, and performant library that has been used in production at Google since 2010. This package provides a way to interface with optimization routines in Ceres via R.
99
or more full sentences.
1010
License: GPL (>= 2)
1111
SystemRequirements: cmake (>= 3.2.0) which is used only on Linux or macOS
12-
systems when no system build of ceres can be found.
1312
Biarch: true
1413
Encoding: UTF-8
1514
Imports:

R/RcppExports.R

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,3 @@ ceres_helloworld <- function(x) {
55
.Call(`_ceres_ceres_helloworld`, x)
66
}
77

8-
rcppeigen_hello_world <- function() {
9-
.Call(`_ceres_rcppeigen_hello_world`)
10-
}
11-
12-
rcppeigen_outerproduct <- function(x) {
13-
.Call(`_ceres_rcppeigen_outerproduct`, x)
14-
}
15-
16-
rcppeigen_innerproduct <- function(x) {
17-
.Call(`_ceres_rcppeigen_innerproduct`, x)
18-
}
19-
20-
rcppeigen_bothproducts <- function(x) {
21-
.Call(`_ceres_rcppeigen_bothproducts`, x)
22-
}
23-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct CostFunctor {
4848

4949
// [[Rcpp::export]]
5050
int ceres_helloworld(double x){
51-
// int main(int argc, char** argv) {
51+
5252
//google::InitGoogleLogging(argv[0]);
5353

5454
// The variable to solve for with its initial value. It will be
@@ -77,7 +77,7 @@ int ceres_helloworld(double x){
7777
}
7878

7979
```
80-
**NOTE** - Compilation of this code will give a list of `Eigen` related warnings in `R`, so they can be neglected.
80+
**NOTE** - Compilation of this code will give a list of `Eigen` related warnings in `R`, which can be neglected for now.
8181

8282
Finally, the `ceres_helloworld` function can be called in `R` using a numeric argument, e.g.,
8383
```

cleanup

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /bin/sh
22

3-
rm -fr src/*.o src/*.so autom4te.cache config.log config.status inst/*.a
4-
rm -f configure~
3+
rm -fr src/*.o src/*.so autom4te.cache config.log config.status
4+
rm -f configure~
5+
rm -f Makevars

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,7 @@ if test -z "${CXX}"; then
20542054
fi
20552055
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
20562056
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2057-
CXX11FLAGS=`"${R_HOME}/bin/R" CMD config CXX11FLAGS`
2057+
CXX17FLAGS=`"${R_HOME}/bin/R" CMD config CXX17FLAGS`
20582058
ac_ext=cpp
20592059
ac_cpp='$CXXCPP $CPPFLAGS'
20602060
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'

0 commit comments

Comments
 (0)