Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119087 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9290 invoked from network); 5 Dec 2022 01:27:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Dec 2022 01:27:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 31AF91804B4 for ; Sun, 4 Dec 2022 17:27:13 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 4 Dec 2022 17:27:12 -0800 (PST) Received: by mail-vk1-f170.google.com with SMTP id u9so4684384vkk.4 for ; Sun, 04 Dec 2022 17:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DUUZRMTRhD+2jMw6V15oay6DQjmvNEWI714S+EGR+OY=; b=O4CuL7c1nMNekyMuLoAxZHNN3ZxIuxpCMLTR6qqT9rMijK1Htlz5zhLzKhWGNJWsK4 jJu7KNHL4BEHuUtPM86fZVOR8NWuK81KJGHqq/CwviY+oQc5q2/yaataZUIQiTOtNprW GNMfZKhCrb32m5x7q+kIAZtBoGXTpRWJHy4mR/X9/6eCEQRAq62efvFZij68EpZJ5yI7 oEVjS0kpkZDtDrFrhjg1X8wYCfnnpT+8lJl7385dCILJuZg123eEtXBNdGNFOCDMzFEm sMaGZB/qCKkDqcu8sSxeicV6PlVP5kLNF/qeqE2/1KMS5YWnnOx2NOxBGOY1cy3RZug8 cHww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DUUZRMTRhD+2jMw6V15oay6DQjmvNEWI714S+EGR+OY=; b=Awhp/W9/Omb7kuUB4mGR997olkRqDgsZdB5w6ojkGQESoBnQYYeNcaGpMbGMCYVRv4 1KQ7GT8ofDjIqblyvqGdglQL5366aWEzYhLYoFZBNf14Ow439rmHvMsgRoZWeyOSHbzY 1wuKMDNWd4hzQSXB9MiNPbJtcsaGICXHrNFLh1v/1bAQMLVW4lglxTUkiilvAmQo2Cwb b18m4WTuTbedbas7T/Vak9CLXe/1nedq+eunqOs3gYgQhOGtysCFMDVHCfZwTIh2ED9m mvPrIoHV5kg7KCfbtPZsyBUNFdg8Ap4X3wbgK0j4Af6QOu8izz8MLxSnElZ4pZPEw6t1 nqTw== X-Gm-Message-State: ANoB5pkVMHKNlwKtehqsGomulfJ161O4Pv7AcjoLW/Ppn0vqC4q6gNQu QpA8wPOHG8h/2PA+42R5a9Fm99aVcQ9uqwoa3WE= X-Google-Smtp-Source: AA0mqf4emOjFktKrbKE2EJJAI0PqRRK0ImGshbMkSQ3gmHV9QqjsIqI2+SEr4BFhKlDuKL1sEIZoH5H03Hec2HlszeA= X-Received: by 2002:a1f:300f:0:b0:3bc:f01b:b76e with SMTP id w15-20020a1f300f000000b003bcf01bb76emr13743537vkw.1.1670203632057; Sun, 04 Dec 2022 17:27:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 4 Dec 2022 22:27:00 -0300 Message-ID: To: j adams Cc: internals Content-Type: multipart/alternative; boundary="00000000000031013d05ef0a9635" Subject: Re: [PHP-DEV] PHP support for matrix operations - BLAS, LAPACK. From: deleugyn@gmail.com (Deleu) --00000000000031013d05ef0a9635 Content-Type: text/plain; charset="UTF-8" On Sun, Dec 4, 2022, 8:43 PM j adams wrote: > I apologize if I have the wrong mailing list here. I'm hoping ot ask the > PHP developer community if there's any appetite for functions to handle > matrix operations and scientific computing. > > I took a course on machine learning which had us code solutions using > matlab/octave. This year I embarked on trying to translate those functions > to PHP and have been quite surprised to learn that pure php is quite > inefficient for matrix multiplication. I've been trying to chase down an > effective way to perform matrix operations in PHP and posting my questions > and progress on this forum at PHPBuilder: > > https://board.phpbuilder.com/d/10403480-converting-matlab-machine-learning-routines-to-php-need-matrix-operations > > Fast matrix operations seem to be absolutely critical for machine learning, > at least for Support Vector Machines and Neural Networks. I know that there > is a FANN extension, but it seems to me that it would be beneficial for > PHP's use in scientific applications if it had support -- either natively > or via some extension -- for matrix operations and possibly other > statistical or scientific computations. Python has numpy, for example. > > How does everyone feel about BLAS or LAPACK extension for PHP? I'm poorly > equipped to cook up such a thing, but these libraries already exist and > could offer great improvements in performance. > I remember studying some ML algorithms back in 2015 and I felt PHP was lacking a lot in terms of matrix operations, specially invert a matrix. It would have been cool to have some fundamental functionalities baked in. > --00000000000031013d05ef0a9635--