summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-tensor/package.py
blob: c0cce979e314902aac0cb1710efa2242f2db37a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2013-2022 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 RTensor(RPackage):
    """Tensor product of arrays.

    The tensor product of two arrays is notionally an outer product of the
    arrays collapsed in specific extents by summing along the appropriate
    diagonals."""

    cran = "tensor"

    version('1.5', sha256='e1dec23e3913a82e2c79e76313911db9050fb82711a0da227f94fc6df2d3aea6')
    version('1.4', sha256='6f1643da018d58a0aaa27260df6fdf687fc36f4cd1964931b3180b7df8c0e642')