Skip to content

Commit 4db13cb

Browse files
authored
Merge branch 'master' into Eigen3.4.0
2 parents fcd383b + 91b9815 commit 4db13cb

25 files changed

+356
-446
lines changed

.codecov.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
coverage:
2-
precision: 1
3-
41
comment: false
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
target: 70% # the (on purpose low) required coverage value
7+
threshold: 2% # the permitted delta in hitting the target
8+
patch:
9+
default:
10+
target: 0% # the (on purpose low) required coverage value
511

6-
ignore:
7-
- "inst/include/Eigen/"
8-
- "inst/include/unsupported/Eigen/"
9-
10-
codecov:
11-
token: 0b726434-b483-4a82-9cfe-e8312f3b3e9b
12+
# layout: "header, diff, tree, changes"
13+
# behavior: default
14+
# require_changes: false # if true: only post the comment if coverage changes
15+
# branches: null
16+
# flags: null
17+
# paths: null

.github/workflows/ci.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
pull_request:
88

99
env:
10-
USE_BSPM: "true"
1110
_R_CHECK_FORCE_SUGGESTS_: "false"
1211

1312
jobs:
@@ -21,13 +20,13 @@ jobs:
2120
runs-on: ${{ matrix.os }}
2221

2322
steps:
24-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
24+
25+
- name: Get Script
26+
run: curl -OLs https://eddelbuettel.github.io/r-ci/run.sh && chmod 0755 run.sh
2527

2628
- name: Bootstrap
27-
run: |
28-
curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
29-
chmod 0755 run.sh
30-
./run.sh bootstrap
29+
run: ./run.sh bootstrap
3130

3231
- name: Dependencies
3332
run: ./run.sh install_all

.travis.yml

-38
This file was deleted.

ChangeLog

+113-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2021-10-26 Yixuan Qiu <[email protected]>
1+
2024-01-17 Yixuan Qiu <[email protected]>
22

33
* DESCRIPTION (Version, Date): Release candidate 0.3.3.99.0
44

@@ -7,6 +7,118 @@
77
* patches/eigen-3.4.0.diff: Carried local CRAN patches forward
88
* patches/howToDiff.md: Idem
99

10+
2023-11-01 Dirk Eddelbuettel <[email protected]>
11+
12+
* DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.4
13+
* inst/NEWS.Rd: Release 0.3.3.9.4
14+
15+
2023-10-05 Mikael Jagan <[email protected]>
16+
17+
* DESCRIPTION: Package 'Matrix' is now only a Suggests:
18+
* NAMESPACE: Remove unconditional imports from package Matrix
19+
20+
* inst/include/Eigen/CholmodSupport: No longer need to include
21+
RcppEigenCholmod.h
22+
* inst/include/Eigen/src/CholmodSupport/CholmodSupport.h: Small
23+
wrapper adjustments conditional on Matrix use
24+
* inst/include/RcppEigenCholmod.h: Updated
25+
* inst/include/RcppEigenForward.h: Simplified
26+
* inst/include/RcppEigenWrap.h: Ditto
27+
* inst/include/RcppEigenStubs.cpp: New shorter helper
28+
* inst/include/RcppEigenStubs.h: Removed
29+
30+
2023-07-21 Dirk Eddelbuettel <[email protected]>
31+
32+
* DESCRIPTION (Date, Version): Roll micro version and date
33+
34+
* README.md: Add r-universe badge
35+
36+
2023-07-20 Dirk Eddelbuettel <[email protected]>
37+
38+
* src/RcppEigen.cpp (EigenNbThreads): Add simple threads reporter
39+
40+
* R/fastLm.R (fastLmPure): Simpler call to `fastLm_Impl()`
41+
42+
* src/init.c: Replaced by auto-generated section in RcppExports.cpp
43+
* src/RcppExports.cpp: Regenerated
44+
* R/RcppExports.R: Idem
45+
46+
* src/Makevars: Document possible use of '-fopenmp'
47+
* src/Makevars.win: Idem
48+
49+
2023-04-18 Dirk Eddelbuettel <[email protected]>
50+
51+
* README.md: Use app.codecov.io as base for codecov link
52+
53+
2023-03-10 Dirk Eddelbuettel <[email protected]>
54+
55+
* DESCRIPTION (Date, Version): Roll minor version
56+
57+
* R/RcppEigen.package.skeleton.R: No longer set Imports: RcppEigen in
58+
DESCRIPTION and NAMESPACE
59+
60+
2023-02-12 Dirk Eddelbuettel <[email protected]>
61+
62+
* inst/CITATION: Convert to bibentry() style with person()
63+
64+
2022-11-04 Dirk Eddelbuettel <[email protected]>
65+
66+
* DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.3
67+
* inst/NEWS.Rd: Release 0.3.3.9.3
68+
69+
* src/init.c: Add 'void' for proper prototype pleasing clang-15
70+
71+
* R/fastLm.R (summary.fastLm,print.fastLm): Refer to correct and full
72+
variable name df.residual in the returned object
73+
74+
* .github/workflows/ci.yaml (jobs): Update to actions/checkout@v3
75+
76+
2022-09-15 Jonah Gabry <[email protected]>
77+
78+
* inst/skeleton/rcppeigen_hello_world.cpp: Correct typo
79+
80+
2022-04-08 Dirk Eddelbuettel <[email protected]>
81+
82+
* DESCRIPTION (Depends): Add a versioned dependency on R 3.6.0 or
83+
later because of our use of FCONE to support USE_FC_LEN_T
84+
85+
2022-04-05 Dirk Eddelbuettel <[email protected]>
86+
87+
* DESCRIPTION (Version, Date): CRAN Release 0.3.3.9.2
88+
* inst/NEWS.Rd: Release 0.3.3.9.2
89+
90+
2022-04-04 Dirk Eddelbuettel <[email protected]>
91+
92+
* src/fastLm.cpp: Add FCONE in two calls for improved Fortran and C
93+
character interface per Writing R Extensions, Section 6.6.1
94+
95+
2022-01-16 Dirk Eddelbuettel <[email protected]>
96+
97+
* inst/tinytest/test_wrap.R: Added (optional) large memory wrap tests
98+
* inst/tinytest/cpp/wrap.cpp: Added C++ part of test
99+
100+
* .codecov.yml: Added to not trigger PR fail for small additions
101+
102+
2022-01-16 Mikael Jagan <[email protected]>
103+
104+
* inst/include/RcppEigenWrap.h: Refine use plain dense wrap() change
105+
106+
2022-01-15 Mikael Jagan <[email protected]>
107+
108+
* inst/include/RcppEigenWrap.h: Use R_xlen_t for vectors rows + cols
109+
110+
2021-12-29 Dirk Eddelbuettel <[email protected]>
111+
112+
* README.md: Add total downloads badge
113+
114+
2021-12-08 Dirk Eddelbuettel <[email protected]>
115+
116+
* README.md: Remove unused continuous integration artifact and badge
117+
118+
2021-10-13 Dirk Eddelbuettel <[email protected]>
119+
120+
* inst/CITATION: Refinment of doi use
121+
10122
2021-10-10 Dirk Eddelbuettel <[email protected]>
11123

12124
* inst/CITATION: Switch JSS url to doi form per JSS request

DESCRIPTION

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: RcppEigen
22
Type: Package
33
Title: 'Rcpp' Integration for the 'Eigen' Templated Linear Algebra Library
44
Version: 0.3.3.99.0
5-
Date: 2021-10-26
5+
Date: 2024-01-17
66
Author: Douglas Bates, Dirk Eddelbuettel, Romain Francois, and Yixuan Qiu;
77
the authors of Eigen for the included version of Eigen
88
Maintainer: Dirk Eddelbuettel <[email protected]>
@@ -14,14 +14,15 @@ Description: R and 'Eigen' integration using 'Rcpp'.
1414
such matrices, and solutions of linear systems. Its performance on many
1515
algorithms is comparable with some of the best implementations based on
1616
'Lapack' and level-3 'BLAS'. The 'RcppEigen' package includes the header
17-
files from the 'Eigen' C++ template library (currently version 3.3.4). Thus
18-
users do not need to install 'Eigen' itself in order to use 'RcppEigen'.
19-
Since version 3.1.1, 'Eigen' is licensed under the Mozilla Public License
20-
(version 2); earlier version were licensed under the GNU LGPL version 3 or
21-
later. 'RcppEigen' (the 'Rcpp' bindings/bridge to 'Eigen') is licensed under
22-
the GNU GPL version 2 or later, as is the rest of 'Rcpp'.
17+
files from the 'Eigen' C++ template library. Thus users do not need to
18+
install 'Eigen' itself in order to use 'RcppEigen'. Since version 3.1.1,
19+
'Eigen' is licensed under the Mozilla Public License (version 2); earlier
20+
version were licensed under the GNU LGPL version 3 or later. 'RcppEigen'
21+
(the 'Rcpp' bindings/bridge to 'Eigen') is licensed under the GNU GPL
22+
version 2 or later, as is the rest of 'Rcpp'.
2323
License: GPL (>= 2) | file LICENSE
2424
LazyLoad: yes
25+
Depends: R (>= 3.6.0)
2526
LinkingTo: Rcpp
2627
Imports: Rcpp (>= 0.11.0), stats, utils
2728
Suggests: Matrix, inline, tinytest, pkgKitten, microbenchmark

R/RcppEigen.package.skeleton.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## RcppEigen.package.skeleton.R: makes a skeleton for a package that wants to use RcppEigen
22
##
3-
## Copyright (C) 2011 - 2021 Douglas Bates, Dirk Eddelbuettel and Romain Francois
3+
## Copyright (C) 2011 - 2023 Douglas Bates, Dirk Eddelbuettel and Romain Francois
44
##
55
## This file is part of RcppEigen.
66
##
@@ -68,7 +68,7 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
6868
DESCRIPTION <- file.path(root, "DESCRIPTION")
6969
if (file.exists(DESCRIPTION)) {
7070
x <- cbind(read.dcf(DESCRIPTION),
71-
"Imports" = sprintf("Rcpp (>= %s), RcppEigen",
71+
"Imports" = sprintf("Rcpp (>= %s)",
7272
packageDescription("Rcpp")[["Version"]]),
7373
"LinkingTo" = "Rcpp, RcppEigen")
7474
write.dcf(x, file = DESCRIPTION)
@@ -81,7 +81,6 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
8181
lines <- readLines(NAMESPACE)
8282
if (!any(grepl("useDynLib", lines))) {
8383
lines <- c(sprintf("useDynLib(%s)", name),
84-
"import(RcppEigen)",
8584
"importFrom(Rcpp, evalCpp)", ## ensures Rcpp instantiation
8685
lines)
8786
writeLines(lines, con = NAMESPACE)

R/RcppExports.R

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# This file was generated by Rcpp::compileAttributes
1+
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4-
fastLm_Impl <- function(X, y, type) {
5-
.Call('RcppEigen_fastLm_Impl', PACKAGE = 'RcppEigen', X, y, type)
6-
}
7-
84
eigen_version <- function(single) {
9-
.Call('RcppEigen_eigen_version', PACKAGE = 'RcppEigen', single)
5+
.Call(`_RcppEigen_eigen_version`, single)
106
}
117

128
Eigen_SSE <- function() {
13-
.Call('RcppEigen_Eigen_SSE', PACKAGE = 'RcppEigen')
9+
.Call(`_RcppEigen_Eigen_SSE`)
10+
}
11+
12+
EigenNbThreads <- function() {
13+
.Call(`_RcppEigen_EigenNbThreads`)
14+
}
15+
16+
fastLm_Impl <- function(X, y, type) {
17+
.Call(`_RcppEigen_fastLm_Impl`, X, y, type)
1418
}
1519

R/fastLm.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## fastLm.R: Rcpp/Eigen implementation of lm()
22
##
3-
## Copyright (C) 2011 - 2017 Douglas Bates, Dirk Eddelbuettel and Romain Francois
3+
## Copyright (C) 2011 - 2023 Douglas Bates, Dirk Eddelbuettel and Romain Francois
44
##
55
## This file is part of RcppEigen.
66
##
@@ -21,7 +21,7 @@ fastLmPure <- function(X, y, method = 0L) {
2121

2222
stopifnot(is.matrix(X), is.numeric(y), NROW(y)==nrow(X))
2323

24-
.Call("RcppEigen_fastLm_Impl", X, y, method, PACKAGE="RcppEigen")
24+
fastLm_Impl(X, y, method)
2525
}
2626

2727
fastLm <- function(X, ...) UseMethod("fastLm")
@@ -54,7 +54,7 @@ summary.fastLm <- function(object, ...) {
5454
object$coefficients <- cbind(Estimate = coef,
5555
"Std. Error" = se,
5656
"t value" = tval,
57-
"Pr(>|t|)" = 2*pt(-abs(tval), df=object$df))
57+
"Pr(>|t|)" = 2*pt(-abs(tval), df=object$df.residual))
5858

5959
## cf src/stats/R/lm.R and case with no weights and an intercept
6060
f <- object$fitted.values
@@ -66,7 +66,7 @@ summary.fastLm <- function(object, ...) {
6666
object$r.squared <- mss/(mss + rss)
6767
df.int <- if (object$intercept) 1L else 0L
6868
n <- length(f)
69-
rdf <- object$df
69+
rdf <- object$df.residual
7070
object$adj.r.squared <- 1 - (1 - object$r.squared) * ((n - df.int)/rdf)
7171
class(object) <- "summary.fastLm"
7272
object
@@ -82,7 +82,7 @@ print.summary.fastLm <- function(x, ...) {
8282

8383
printCoefmat(x$coefficients, P.values=TRUE, has.Pvalue=TRUE, ...)
8484
cat("\nResidual standard error: ", formatC(x$s, digits=digits), " on ",
85-
formatC(x$df), " degrees of freedom\n", sep="")
85+
formatC(x$df.residual), " degrees of freedom\n", sep="")
8686
cat("Multiple R-squared: ", formatC(x$r.squared, digits=digits),
8787
",\tAdjusted R-squared: ",formatC(x$adj.r.squared, digits=digits),
8888
"\n", sep="")

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
## RcppEigen: R and Eigen via Rcpp
22

3-
[![Build Status](https://travis-ci.org/RcppCore/RcppEigen.svg)](https://travis-ci.org/RcppCore/RcppEigen)
43
[![CI](https://github.com/RcppCore/RcppEigen/workflows/ci/badge.svg)](https://github.com/RcppCore/RcppEigen/actions?query=workflow%3Aci)
54
[![License](https://img.shields.io/badge/license-GPL%20%28%3E=%202%29-brightgreen.svg?style=flat)](https://www.gnu.org/licenses/gpl-2.0.html)
65
[![License](https://img.shields.io/badge/license-MPL2-brightgreen.svg?style=flat)](https://www.mozilla.org/MPL/2.0/)
76
[![CRAN](https://www.r-pkg.org/badges/version/RcppEigen)](https://cran.r-project.org/package=RcppEigen)
7+
[![r-universe](https://rcppcore.r-universe.dev/badges/RcppEigen)](https://rcppcore.r-universe.dev/RcppEigen)
88
[![Dependencies](https://tinyverse.netlify.com/badge/RcppEigen)](https://cran.r-project.org/package=RcppEigen)
9-
[![Coverage Status](https://codecov.io/gh/RcppCore/RcppEigen/graph/badge.svg)](https://codecov.io/github/RcppCore/RcppEigen?branch=master)
9+
[![Coverage Status](https://codecov.io/gh/RcppCore/RcppEigen/graph/badge.svg)](https://app.codecov.io/github/RcppCore/RcppEigen?branch=master)
1010
[![Debian package](https://img.shields.io/debian/v/r-cran-rcppeigen/sid?color=brightgreen)](https://packages.debian.org/sid/r-cran-rcppeigen)
1111
[![Last Commit](https://img.shields.io/github/last-commit/RcppCore/RcppEigen)](https://github.com/RcppCore/RcppEigen)
12-
[![Downloads](https://cranlogs.r-pkg.org/badges/RcppEigen?color=brightgreen)](https://www.r-pkg.org:443/pkg/RcppEigen)
12+
[![Downloads (monthly)](https://cranlogs.r-pkg.org/badges/RcppEigen?color=brightgreen)](https://www.r-pkg.org:443/pkg/RcppEigen)
13+
[![Downloads (total)](https://cranlogs.r-pkg.org/badges/grand-total/RcppEigen?color=brightgreen)](https://www.r-pkg.org:443/pkg/RcppEigen)
1314
[![CRAN use](https://jangorecki.gitlab.io/rdeps/RcppEigen/CRAN_usage.svg?sanitize=true)](https://cran.r-project.org/package=RcppEigen)
1415
[![BioConductor use](https://jangorecki.gitlab.io/rdeps/RcppEigen/BioC_usage.svg?sanitize=true)](https://cran.r-project.org/package=RcppEigen)
1516
[![StackOverflow](https://img.shields.io/badge/stackoverflow-rcpp-orange.svg)](https://stackoverflow.com/questions/tagged/rcpp)

inst/CITATION

+13-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
citHeader("To cite RcppEigen in publications use:")
2-
3-
citEntry(entry = "Article",
4-
title = "Fast and Elegant Numerical Linear Algebra Using the {RcppEigen} Package",
5-
author = personList(as.person("Douglas Bates"),
6-
as.person("Dirk Eddelbuettel")),
7-
journal = "Journal of Statistical Software",
8-
year = "2013",
9-
volume = "52",
10-
number = "5",
11-
pages = "1--24",
12-
url = "https://doi.org/10.18637/jss.v052.i05",
13-
14-
textVersion =
15-
paste("Douglas Bates, Dirk Eddelbuettel (2013).",
16-
"Fast and Elegant Numerical Linear Algebra Using the RcppEigen Package.",
17-
"Journal of Statistical Software, 52(5), 1-24.",
18-
"URL https://doi.org/10.18637/jss.v052.i05/.")
19-
)
1+
bibentry("Article",
2+
title = "Fast and Elegant Numerical Linear Algebra Using the {RcppEigen} Package",
3+
author = c(person("Douglas", "Bates",
4+
comment = c(ORCID = "0000-0001-8316-9503")),
5+
person("Dirk", "Eddelbuettel",
6+
email = "[email protected]",
7+
comment = c(ORCID = "0000-0001-6419-907X"))),
8+
journal = "Journal of Statistical Software",
9+
year = "2013",
10+
volume = "52",
11+
number = "5",
12+
pages = "1--24",
13+
doi = "10.18637/jss.v052.i05")

0 commit comments

Comments
 (0)