{"repo":"RubixML/Tensor","free":true,"listed":false,"github":"https://github.com/RubixML/Tensor","clone":"git clone https://github.com/RubixML/Tensor.git","description":"A library and extension that provides objects for scientific computing in PHP.","language":"PHP","stars":280,"topics":["linear-algebra","matrix","vector","matrix-decompositions","math","tensor","php","scientific-computing","php-extension","matrix-multiplication"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Tensor: Scientific Computing for PHP A library and extension that provides objects for scientific computing in PHP. Installation Follow the instructions below to install either Tensor PHP or the Tensor extension. Tensor PHP Install Tensor PHP into your project with Composer: Tensor Extension Install the Tensor extension via PECL: Compiling on MacOS : To avoid some errors on Mac devices using homebrew, don't forget to add environment variables: Note: If both the library and extension are installed, the extension will take precedence. Requirements - PHP 8.0 or above Optional To Compile Extension - A C compiler such as GCC, Clang, or Visual C++ - A Fortran compiler such as GFortran - The PHP development package (source code and tooling) - OpenBLAS development package - LAPACKE C interface to LAPACK - re2c 0.13.6 or later - GNU make 3.81 or later - autoconf 2.31 or later - automake 1.14 or later - Ubuntu build-essentials Manually Compiling the Extension Clone the repository locally using Git: Make sure you have all the necessary build tools installed such as a C compiler and make tools. For example, on an Ubuntu linux system you can enter the following on the command line to install the necessary dependencies. Then, change into the ext directory from the project root and run the following commands from the terminal. See this guide for more information on compiling PHP extensions with PHPize. Finally, add the following line to your php.ini configuration to install the extension. T","default_branch":null,"files":null,"tree":[],"storefront":"/r/RubixML","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RubixML/Tensor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}