From patchwork Fri Apr 8 14:59:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 38416 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A35A327BBEA; Fri, 8 Apr 2022 16:09:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6DC9727BBE9 for ; Fri, 8 Apr 2022 16:09:12 +0100 (BST) Received: from localhost ([::1]:60050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncqEZ-0007ch-I4 for patchwork@mira.cbaines.net; Fri, 08 Apr 2022 11:09:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncq6g-0008TJ-Ch for guix-patches@gnu.org; Fri, 08 Apr 2022 11:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncq6f-0001Wr-Mg for guix-patches@gnu.org; Fri, 08 Apr 2022 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncq6f-0006Xh-LN for guix-patches@gnu.org; Fri, 08 Apr 2022 11:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54790] [PATCH 1/3] gnu: Add r-paralleldist. References: <20220408145829.3344728-1-zimon.toutoune@gmail.com> In-Reply-To: <20220408145829.3344728-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 15:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54790 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54790@debbugs.gnu.org Cc: zimoun Received: via spool by 54790-submit@debbugs.gnu.org id=B54790.164943001225063 (code B ref 54790); Fri, 08 Apr 2022 15:01:01 +0000 Received: (at 54790) by debbugs.gnu.org; 8 Apr 2022 15:00:12 +0000 Received: from localhost ([127.0.0.1]:35553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncq5r-0006W9-LN for submit@debbugs.gnu.org; Fri, 08 Apr 2022 11:00:11 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:42922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncq5p-0006Ug-Hw for 54790@debbugs.gnu.org; Fri, 08 Apr 2022 11:00:10 -0400 Received: by mail-wr1-f51.google.com with SMTP id r13so13257688wrr.9 for <54790@debbugs.gnu.org>; Fri, 08 Apr 2022 08:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yzSxJllHckq113wn6zoibfSTGdkE/qY7tXbbvW9Qsnw=; b=mXr9lyUTjsHrVjxNEa1R+7M9tNBNSy+RM6/jp1f3x8o9filazchHzkePupTyHpPu0W Atz4WUYL1epCgL6IohjwvO0vHob4n73oZAE8pkctZfD34Ss/oUNDsPHVTlfoLzy9i0R4 YqekfeCs5xm+aAc7Ex9F4KjcW8/4esFfCjqSkBjp3ptQOgMr1JTvWIM9/fAhJTv3ovpz +TI9WSauZN6U/wS3nALGT3g5a4DRFoZ5MPA91cwzYPdVFt6rg+Wfk4r7rZLodAuEY8bm fNX8jARx8UcoZM34MESnPQyn43TgURwP+IIPuSPcofcsHW3DsoMvwmJMKXvF5NxcD2/m OzTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yzSxJllHckq113wn6zoibfSTGdkE/qY7tXbbvW9Qsnw=; b=DY8U5QZJca7S+Rg5aCB9GaBkAtwLSbnmobE0LX/XUqv4s68IWRWYMeph39x80/5aZs bo8SArE42ZuuxwiiNYRu4t0MAYy8LYxfy4/UzQx1DLDu7FkqHQH6tvcy44ndHB8CuIN8 WI7o+WnSChSO6bPNxqjG3ai8slfxC50y8YJe5PKWbYGwONsHgxSFXMpQDRXUbN9yR3TJ a8opoWTk7rTPjfuTlww7p/vWTDW1JEJMicc1yS7Hk1RvYVhZZE5P86ZkgeDI4KZVMKVZ dYWQIQ5JZ15AzMQKaw5BOqJMKvIzTTXWN+xiXTQFVhiHxo3g7fPIcx1rx3rDfynLvS4d qNvQ== X-Gm-Message-State: AOAM533oVZnnwJK1NOqFlpm0DrG1k55G6QqzN77LLai8n/osF6CMpvFN onPkd0aCDpEoKQU6wV3RghKHQPpk/x8= X-Google-Smtp-Source: ABdhPJxfLkEXx61f5VHCQXbPtHzpveQ2o0oc8ENxjWi637MqTjtCZe8sCZ31bZnkkXNEK22+CzDDBg== X-Received: by 2002:a05:6000:1f9a:b0:207:9ad9:e300 with SMTP id bw26-20020a0560001f9a00b002079ad9e300mr1410346wrb.562.1649430003494; Fri, 08 Apr 2022 08:00:03 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id t185-20020a1c46c2000000b0038e7092025bsm10388554wma.20.2022.04.08.08.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 08:00:02 -0700 (PDT) From: zimoun Date: Fri, 8 Apr 2022 16:59:52 +0200 Message-Id: <20220408145954.3345224-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cran.scm (r-paralleldist): New variable. --- gnu/packages/cran.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index be77a57f28..b9ea1144f2 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -1074,6 +1074,39 @@ (define-public r-pacman functions which can speed up workflow.") (license license:gpl2))) +(define-public r-paralleldist + (package + (name "r-paralleldist") + (version "0.2.6") + (source + (origin + (method url-fetch) + (uri (cran-uri "parallelDist" version)) + (sha256 + (base32 "01ly4hxwa64a0ya5gla8rvv72s9mcknsfznivjkh937pbjwb7iih")))) + (properties `((upstream-name . "parallelDist"))) + (build-system r-build-system) + (propagated-inputs (list r-rcpp r-rcpparmadillo r-rcppparallel)) + (home-page "https://github.com/alexeckert/parallelDist") + (synopsis "Parallel Distance Matrix Computation using Multiple Threads") + (description + "This package provides a fast parallelized alternative to R's native +'dist' function to calculate distance matrices for continuous, binary, and +multi-dimensional input matrices, which supports a broad variety of 41 +predefined distance functions from the 'stats', 'proxy' and 'dtw' R packages, +as well as user- defined functions written in C++. For ease of use, the +'parDist' function extends the signature of the 'dist' function and uses the +same parameter naming conventions as distance methods of existing R packages. +The package is mainly implemented in C++ and leverages the 'RcppParallel' +package to parallelize the distance computations with the help of the +'TinyThread' library. Furthermore, the 'Armadillo' linear algebra library is +used for optimized matrix operations during distance calculations. The +curiously recurring template pattern (CRTP) technique is applied to avoid +virtual functions, which improves the Dynamic Time Warping calculations while +the implementation stays flexible enough to support different DTW step +patterns and normalization methods.") + (license license:gpl2+))) + (define-public r-pheatmap (package (name "r-pheatmap")