Skip to content

Commit

Permalink
Add info about optional optimization flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed May 4, 2024
1 parent 1b99c3b commit 17f9284
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ You can install the development version of boRing from
devtools::install_github("swarm-lab/boRing")
```

`boRing` depends on [`RcppEigen`](https://github.com/RcppCore/RcppEigen) for
computing efficiently the weighted covariance matrix of the empirical
distribution as well as the Mahalanobis distances of the observations.
A significant performance increase can be obtained by adding the `-O3`
optimization flag to the `CXXFLAGS` line in your local `.R/Makevars` file. If
you don't know where your local `.R/Makevars` file is located, install the
[`usethis`](https://usethis.r-lib.org/) package and then run
`usethis::edit_r_makevars()`.


## Example

``` r
Expand Down

0 comments on commit 17f9284

Please sign in to comment.