Download the PHP package scienide/tensor without Composer
On this page you can find all versions of the php package scienide/tensor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scienide/tensor
More information about scienide/tensor
Files in scienide/tensor
Package tensor
Short Description A library and extension that provides objects for scientific computing in PHP.
License MIT
Homepage https://github.com/Scien-ide/Tensor
Informations about the package tensor
Tensor: Scientific Computing for PHP
Tensor is a library and extension that provides objects for scientific computing in PHP. The multithreaded extension is especially suited for computing large sets of numbers. In some cases, the extension is 230X faster than the same operation in PHPland. Tensor is used by libraries such as Rubix ML to build and accelerate machine learning algorithms such as linear regression, dimensionality reduction, and neural networks.
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:
Note: If both the library and extension are installed, the extension will take precedence.
Requirements
- PHP 7.4 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 development package
- 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.
To confirm that the extension is loaded in PHP, you can run the following command.
Performance Comparison
Funding
Tensor is funded by donations from the community. You can become a sponsor by making a contribution to one of our funding sources below.
Contributing
See CONTRIBUTING.md for guidelines.
License
The code is licensed CC BY-NC 4.0.