summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-fftwtools/package.py
blob: 831037cf1c2eb42cd1a85961be4ce742d3bac822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2013-2021 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 import *


class RFftwtools(RPackage):
    """Wrapper for 'FFTW3' Includes: One-Dimensional Univariate,
    One-Dimensional Multivariate, and Two-Dimensional Transform

    Provides a wrapper for several 'FFTW' functions. This package provides
    access to the two-dimensional 'FFT', the multivariate 'FFT', and the
    one-dimensional real to complex 'FFT' using the 'FFTW3' library. The
    package includes the functions fftw() and mvfftw() which are designed to
    mimic the functionality of the R functions fft() and mvfft().  The 'FFT'
    functions have a parameter that allows them to not return the redundant
    complex conjugate when the input is real data."""

    homepage = "https://github.com/krahim/fftwtools"
    url      = "https://cloud.r-project.org/src/contrib/fftwtools_0.9-8.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/fftwtools"

    version('0.9-9', sha256='a9273b7e495d228d740ab4525467e4bbefe8614bd2d97e7234017f1305f51441')
    version('0.9-8', sha256='4641c8cd70938c2a8bde0b6da6cf7f83e96175ef52f1ca42ec3920a1dabf1bdb')

    depends_on('r@2.15.2:', type=('build', 'run'))
    depends_on('fftw@3.1.2:')