Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119086 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 804 invoked from network); 4 Dec 2022 23:43:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Dec 2022 23:43:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 966CA180339 for ; Sun, 4 Dec 2022 15:43:41 -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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 15:43:38 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id b2so23974427eja.7 for ; Sun, 04 Dec 2022 15:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VbAJ5OBOM5cdh/EnvktrZ7YUwlOFL9J/anonZewP048=; b=hhbj01AMvfHzmFI12gwfZvgAvJNHdNjPjI2M0lAHc0ms5PIvfZUSw3LyNl1j8u1CH9 A/nrBbe2W9TkSly+EISk7UuiU8W89U5zUses6sgNcRQHY/YbM8l0FKVYW0dBVBxh9FtZ pYvxDEzkIa/40zUdsXVQoLKVl3IhO7jHw63P40u66qW3mxsx/d/9ADRO6rEr0B/BQVsg Qmy1iinOP7lNps9+ajSEvctdLmnN8C2RGw3B4vCZKDloONlqQ8rEwPPxm/Dx+6tW3SSv jUOdm9RrmfQxAnq/Gt++8AEYKkO3ykXYw5LN0Ehy8SMOth5XBN4yb59jmJHXhpR+Oz3z NKMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VbAJ5OBOM5cdh/EnvktrZ7YUwlOFL9J/anonZewP048=; b=aUEck0g0wcZYxSRb9eg390qewbYyDYxvNlGR3MDEbbObTU7wg99iGN0twBm3EHt/ja DCPu3xasms2viPh58WaTMpps2jZzfUhyD1vUH62igOuISpoiXtu0zK5W5IQGTAAC4NkC kdvtuhI7tLWSLqhYHOCb9VaVNAUa8gsrZ8NO9SsrP8Yi51jssmkjz3i/qJgg7SnVEfaQ aQzOEut3hZVGAyaf6oInn/X4dxoCxxh7OtQf4F55ZVPEV4PGFNFgjnBwtSIbV08IlG4V Dcv5E8DdcbYh4L4UBCzPcs2ZQDw/DS4F6Yky5C8LIOINuu+RWrEK/kWqhaVLEPnly4a+ 5mlA== X-Gm-Message-State: ANoB5pmvkFTp3KYq5V/nu4a+2qQ1My94i3zGBOOYK8TCsflZI6kPAhXo UB58B1uhS0UD3zk+yQ+jbDKP+F9t1y2VmCgRXUVb2RKsdKo= X-Google-Smtp-Source: AA0mqf4d/SA8J8TL2+VD0OmqWB/o1ocgoY3FLHhbMqL23LuCcfU6E5z253ZDuyugOdSVlOkQQQfJ+S6ys21FDSFGcRY= X-Received: by 2002:a17:907:d08c:b0:7b6:62c:dd57 with SMTP id vc12-20020a170907d08c00b007b6062cdd57mr4611369ejc.207.1670197416204; Sun, 04 Dec 2022 15:43:36 -0800 (PST) MIME-Version: 1.0 Date: Sun, 4 Dec 2022 15:43:24 -0800 Message-ID: To: internals Content-Type: multipart/alternative; boundary="000000000000b29f5605ef09239f" Subject: PHP support for matrix operations - BLAS, LAPACK. From: zardozrocks@gmail.com (j adams) --000000000000b29f5605ef09239f Content-Type: text/plain; charset="UTF-8" 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. --000000000000b29f5605ef09239f--