Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.2%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: RobinHankin
- Language: R
- Default Branch: master
- Homepage: https://robinhankin.github.io/mvp/
- Size: 4.3 MB
Statistics
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 13
- Releases: 1
Created about 9 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
Contributing
Code of conduct
README.Rmd
---
title: "Fast symbolic multivariate polynomials in R"
output:
github_document:
pandoc_args: --webtex
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Overview
Multivariate polynomials are interesting and useful objects. Here I
present the `mvp` package which hopefully improves upon previous R
functionality provided by the packages `multipol`, `mpoly`, and
`spray`. The `mvp` package follows `mpoly` in using a symbolic,
rather than numeric, representation of a multivariate polynomial; but
it offers speed advantages over `mpoly`. `mvp` uses the excellent
print and coercion methods of the `mpoly` package. `mvp` includes
some pleasing substitution idiom not found elsewhere; it is
theoretically comparable in speed to the `spray` package and I present
some timings in the package vignette.
The `mvp` package uses `C++`'s STL `map` class for efficiency, which
has the downside that the order of the terms, and the order of the
symbols within each term, is undefined. This does not matter as the
mathematical value of a multivariate polynomial is unaffected by
reordering; and the print method (taken from `mpoly`) does a good job
in producing human-readable output.
# Installation
You can install the released version of `mvp` from [CRAN](https://CRAN.R-project.org) with:
```{r, message=FALSE}
# install.packages("mvp") # uncomment this to install the package
library("mvp")
```
# The `mvp` package in use
Creating a multivariate polynomial is straightforward:
```{r}
X <- as.mvp("1 + a^2 + a*b*c^3")
X
```
and arithmetic operations work as expected:
```{r}
Y <- as.mvp("12*a^2 + b - c^2 + 4*d")
X+Y
X-3*Y
X^2
```
Substitution uses the `subs()` function:
```{r}
X
subs(X,a=1)
subs(X,a=1,b=2)
subs(X,a=1,b=2,c=3)
subs(X+Y,a="1+x^2",b="x+y",c=0)
```
# Further information
For more detail, see the package vignette
`vignette("mvp")`
Owner
- Name: Robin Hankin
- Login: RobinHankin
- Kind: user
- Location: Auckland
- Company: AUT
- Repositories: 30
- Profile: https://github.com/RobinHankin
pushing the boundaries of R in non-statistical contexts
GitHub Events
Total
- Issues event: 1
- Watch event: 1
- Issue comment event: 2
- Push event: 40
- Create event: 1
Last Year
- Issues event: 1
- Watch event: 1
- Issue comment event: 2
- Push event: 40
- Create event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| RobinHankin | h****n@g****m | 382 |
| Robin Hankin | R****n | 4 |
| David Kahle | d****e@g****m | 1 |
Issues and Pull Requests
Last synced: almost 2 years ago
All Time
- Total issues: 72
- Total pull requests: 2
- Average time to close issues: 3 months
- Average time to close pull requests: 2 months
- Total issue authors: 4
- Total pull request authors: 2
- Average comments per issue: 1.14
- Average comments per pull request: 2.5
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 9
- Pull requests: 0
- Average time to close issues: about 1 month
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.11
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- RobinHankin (67)
- stla (2)
- michaelgordy (1)
- briankleiboeker (1)
Pull Request Authors
- dkahle (1)
- stla (1)
Top Labels
Issue Labels
enhancement (6)
bug (5)
infelicity (1)
cool example (1)
documentation (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 396 last-month
- Total docker downloads: 42,005
- Total dependent packages: 3
- Total dependent repositories: 4
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: mvp
Fast Symbolic Multivariate Polynomials
- Homepage: https://github.com/RobinHankin/mvp
- Documentation: http://cran.r-project.org/web/packages/mvp/mvp.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 1.0-18
published over 1 year ago
Rankings
Docker downloads count: 0.6%
Dependent packages count: 10.9%
Forks count: 14.1%
Dependent repos count: 14.5%
Average: 14.8%
Stargazers count: 18.3%
Downloads: 30.3%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- magrittr * depends
- methods * depends
- mpoly >= 1.1.0 depends
- Rcpp >= 1.0 imports
- digest * imports
- disordR >= 0.0 imports
- magic * imports
- numbers * imports
- partitions * imports
- knitr * suggests
- microbenchmark * suggests
- rmarkdown * suggests
- spray * suggests
- testthat * suggests
.github/workflows/check.yaml
actions
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/simple.yaml
actions
- actions/checkout v4.1.1 composite
- actions/upload-artifact v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- user-workshop-cicd/action-example main composite