Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119089 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38633 invoked from network); 5 Dec 2022 10:06:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Dec 2022 10:06:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3F79D180504 for ; Mon, 5 Dec 2022 02:06:27 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 ; Mon, 5 Dec 2022 02:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1670234784; bh=SiSwfXJCUxU6zJ5SimHedB/d3m35DaBVQ5XPZwWqICk=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=TXAuN8+Tzv3lXJk9RtXav2GegetzCF84YeidV0p61SuXVFbHU2OoMCwK/b6/pu/D9 OI566+p3KgirEKVLNzDTU7BCp3V3A1jdQfZbcYotYG6ghKkaHxMQ3KbTDad0IpKGDw d13fKG34tmBDfF6XvTwiJ6CWuydPw4Clm863d9TY7BNUgy5HwL4dyuoyz9EZIY5X5n WYzurB5twdixQiokfRm2tPKh+y/TBFJaffEVd+kZWMmDo25DRMqUTvUkm6sG8SS0S9 SGANSqTRFNvq7Brf4R8mDF/vcq9G7SjIX9iaXdaDNTMtkb00sQG8EnmbAKs2HR8cWk qot+C9wivHIrA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.220.80.221]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAfUo-1p8mCG11bs-00B4KZ; Mon, 05 Dec 2022 11:06:24 +0100 Message-ID: <93d820f0-aa43-3068-ce0e-0211993b20c7@gmx.de> Date: Mon, 5 Dec 2022 11:06:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 To: j adams , internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:X4akm8+0gnFm4h1iSrA0kX+3yvYdqsnQVuVawYOzXbbB6jpdkuU WgwyblroDPhUDoptYkFgsrqLOixaDb82iPWiTt6gY1FYwbKv8bciWmrQKrR25TqTWz/Uljc +qPc2gZHPUPlXbMqPKwWzXqok3g7PlL8b17YYuD0FWHwBlN+0pzOdYDwOZ62OeTMTySCgKx SZOIilYEmvAg46xRTDevA== UI-OutboundReport: notjunk:1;M01:P0:psIIv0pIJT4=;f+NOb2EC06Sijl37r8UPWxkzZj4 WyMzsScNVPU2wZYvya7OvOOW+jFL1fhBQqy1yCM3zs4iN7nlAG8E4GSp5v/DLN5+t1JT0Pv63 wKYI0v2x6ScOQYh1rgkbausp/SexzXbjSn6KlKelWrWVqEDWtGk6VbcW4pugmq8LHZXvCroH2 s2kMyMSUyETebIXHmb1NQQlHbLM7GeA1nnA9mgkrGdzKvPn6J2RACmZhY1UXVll8RicK/k0dq 6/0yVeL19/L92+Ikwkd+KJaX+v1p3tiE21lswF1dwNXhJVLv+3qAAw8QE1Zjo2Yo5jnpNnx8S /rriniJKPM9S2LI2DBxQG/FvCjE0Z58XAf/R5POTcFWPgWpqzPtXRb2roG36d4d88Exg8ziYc bd6AXeb0EnK3FyuVE54BHxNQ5f4KfO3EfqhK9ZsMuSJFyBu7w5r3g4vGS/NcVlvasZvDabXBD VdWBbRXreAu/wqf3hk42mrT5IvRzLuYqHdGyLuZyr72tcuLAhcsgIPEFvkuC1WiQvcvO6A73N 786QYAM0YjxvhC4srBSXGkXks0wwlMrgmtkbGZAcpf9Kw3BLCCf9zcTEw6kMFQdfAcw60pQ06 LrW09B3cRTOVNxLSvMM/jS5soGYB5tKxFmfiTD8qfdxhUDaNGFY5zxyj5XSEfqVHtKgRsX88n KHlCWRRq/anIvSYkQTGqKwbf3OJjftbuK2rdoJVf0lTzZ7PIQVWoPRsW24N3LqdKVKHXWckZa X31cifMGIcmnCIAq4gekFpwqFnhUMoJyuIluEk/t4opsZMCsCD19asGqsELuB0TRUtwLDR+cN 9lfuJuuTtCct4wKudW4UBQP44tJPn0Iq39nS4bwikfc9D0zKs/4/v8iup/5KcchssmxVWq5xJ pklDgOGL2NWSg/1LTwJYw7uyfaaKQpNFeXqXD2fN/oFOF5d7iXNmYxiJdunNiqsLFgPm5mQMv SYhe2w== Subject: Re: PHP support for matrix operations - BLAS, LAPACK. From: cmbecker69@gmx.de ("Christoph M. Becker") On 05.12.2022 at 00:43, 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 functio= ns > 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 questio= ns > and progress on this forum at PHPBuilder: > https://board.phpbuilder.com/d/10403480-converting-matlab-machine-learni= ng-routines-to-php-need-matrix-operations > > Fast matrix operations seem to be absolutely critical for machine learni= ng, > at least for Support Vector Machines and Neural Networks. I know that th= ere > 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 nativel= y > 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 poorl= y > equipped to cook up such a thing, but these libraries already exist and > could offer great improvements in performance. There is already , which should serve these needs. =2D- Christoph M. Becker