Tensor: Scientific Computing for PHP
Tensor is a library and extension that provides objects for scientific computing in PHP.
Installation
Install Tensor into your project with Composer:
$ composer require rubix/tensorRequirements
- PHP 7.2 or above
Optional
- A C compiler such as GCC, Clang, or Visual C++ to compile the extension
- Zephir parser to generate low level extension code
Additional Requirements for Compiling Extension
See this guide for additional requirements for compiling and installing the PHP extension from source with Zephir.
Compiling the Extension
Clone the repository locally using Git:
$ git clone https://github.com/RubixML/TensorInstall dependencies using Composer:
$ composer installTo compile the PHP extension from source you can run composer compile:
$ composer compileInstalling the Extension
To compile and install the extension in one command you may call composer install-ext:
$ composer install-extThen, add the following line to your php.ini configuration:
extension=tensor
License
The code is licensed MIT and the documentation is licensed CC BY-NC 4.0.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
