28 lines
1.0 KiB
Python
28 lines
1.0 KiB
Python
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class RRcppziggurat(RPackage):
|
|
"""'Rcpp' Integration of Different "Ziggurat" Normal RNG Implementations.
|
|
|
|
The Ziggurat generator for normally distributed random numbers, originally
|
|
proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>) has
|
|
been improved upon a few times starting with Leong et al (2005,
|
|
<doi:10.18637/jss.v012.i07>). This package provides an aggregation in order
|
|
to compare different implementations in order to provide an 'faster but
|
|
good enough' alternative for use with R and C++ code."""
|
|
|
|
cran = "RcppZiggurat"
|
|
|
|
version("0.1.6", sha256="9c78255ca476c945c05a564d1e4da363de714d890e0e27f3b252fd73c50eed71")
|
|
|
|
depends_on("r-rcpp", type=("build", "run"))
|
|
depends_on("r-rcppgsl", type=("build", "run"))
|
|
|
|
# not listed as a dependency but needed
|
|
depends_on("gsl")
|