Skip to content

Commit

Permalink
Fix CRAN checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Guidotti committed Aug 19, 2022
1 parent f363d48 commit ee73d51
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.Rhistory
.RData
.Ruserdata
.DS_Store
src/*.o
src/*.dll
docs/
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: calculus
Type: Package
Title: High Dimensional Numerical and Symbolic Calculus
Version: 0.3.3
Version: 0.3.4
Authors@R: person(given = "Emanuele", family = "Guidotti", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-8961-6623"))
Description: Efficient C++ optimized functions for numerical and symbolic calculus as described in Guidotti (2020) <arXiv:2101.00086>. It includes basic arithmetic, tensor calculus, Einstein summing convention, fast computation of the Levi-Civita symbol and generalized Kronecker delta, Taylor series expansion, multivariate Hermite polynomials, high-order derivatives, ordinary differential equations, differential operators (Gradient, Jacobian, Hessian, Divergence, Curl, Laplacian) and numerical integration in arbitrary orthogonal coordinate systems: cartesian, polar, spherical, cylindrical, parabolic or user defined by custom scale factors.
License: GPL-3
Expand All @@ -14,5 +14,5 @@ Suggests:
testthat,
knitr,
rmarkdown
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
VignetteBuilder: knitr
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# calculus 0.3.4

- fix CRAN check

# calculus 0.3.3

- fix CRAN check
Expand Down
4 changes: 2 additions & 2 deletions man/calculus-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cross.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/curl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/diagonal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/divergence.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/gradient.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/hessian.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/index.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/jacobian.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/laplacian.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/calculus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using namespace Rcpp;

// Check if string is zero
bool is_zero (std::string const &x){
return((x=="0") | (x=="(0)") | (x=="((0))") | (x=="{0}") | (x=="0+0i") | (x=="(0+0i)") | (x==""));
return((x=="0") || (x=="(0)") || (x=="((0))") || (x=="{0}") || (x=="0+0i") || (x=="(0+0i)") || (x==""));
}

// Check if double is zero
Expand Down
Binary file added src/calculus.so
Binary file not shown.

0 comments on commit ee73d51

Please sign in to comment.