All Projects → RubixML → Tensor

RubixML / Tensor

Licence: MIT license
A library and extension that provides objects for scientific computing in PHP.

Programming Languages

PHP
23972 projects - #3 most used programming language
c
50402 projects - #5 most used programming language
Zephir
11 projects

Projects that are alternatives of or similar to Tensor

GenericTensor
The only library allowing to create Tensors (matrices extension) with custom types
Stars: ✭ 42 (-71.23%)
Mutual labels:  vector, matrix, matrix-multiplication, tensor
Numphp
Mathematical PHP library for scientific computing
Stars: ✭ 120 (-17.81%)
Mutual labels:  math, vector, matrix, linear-algebra
Armadillo Code
Armadillo: fast C++ library for linear algebra & scientific computing - http://arma.sourceforge.net
Stars: ✭ 388 (+165.75%)
Mutual labels:  vector, matrix, linear-algebra, scientific-computing
Math Php
Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Stars: ✭ 2,009 (+1276.03%)
Mutual labels:  math, vector, matrix, linear-algebra
monolish
monolish: MONOlithic LInear equation Solvers for Highly-parallel architecture
Stars: ✭ 166 (+13.7%)
Mutual labels:  matrix, linear-algebra, scientific-computing, lapack
Mathematics for Machine Learning
Learn mathematics behind machine learning and explore different mathematics in machine learning.
Stars: ✭ 28 (-80.82%)
Mutual labels:  math, vector, matrix, linear-algebra
sparse
Sparse matrix formats for linear algebra supporting scientific and machine learning applications
Stars: ✭ 136 (-6.85%)
Mutual labels:  vector, matrix, scientific-computing, matrix-multiplication
Sharpmath
A small .NET math library.
Stars: ✭ 36 (-75.34%)
Mutual labels:  math, vector, matrix
Algebra
means completeness and balancing, from the Arabic word الجبر
Stars: ✭ 92 (-36.99%)
Mutual labels:  math, vector, matrix
matrixgl
Yet another matrix library for WebGL
Stars: ✭ 25 (-82.88%)
Mutual labels:  math, vector, matrix
Joml
A Java math library for OpenGL rendering calculations
Stars: ✭ 479 (+228.08%)
Mutual labels:  math, vector, matrix
Hlslpp
Math library using hlsl syntax with SSE/NEON support
Stars: ✭ 153 (+4.79%)
Mutual labels:  math, vector, matrix
Mathnet Numerics
Math.NET Numerics
Stars: ✭ 2,688 (+1741.1%)
Mutual labels:  math, matrix, linear-algebra
Notecalc3
NoteCalc is a handy calculator trying to bring the advantages of Soulver to the web.
Stars: ✭ 879 (+502.05%)
Mutual labels:  math, matrix, linear-algebra
Cglm
📽 Highly Optimized Graphics Math (glm) for C
Stars: ✭ 887 (+507.53%)
Mutual labels:  math, vector, matrix
SCNMathExtensions
Math extensions for SCNVector3, SCNQuaternion, SCNMatrix4
Stars: ✭ 32 (-78.08%)
Mutual labels:  math, vector, matrix
Surge
A Swift library that uses the Accelerate framework to provide high-performance functions for matrix math, digital signal processing, and image manipulation.
Stars: ✭ 4,945 (+3286.99%)
Mutual labels:  math, matrix, arithmetic
linalg
Linear algebra library based on LAPACK
Stars: ✭ 42 (-71.23%)
Mutual labels:  matrix, linear-algebra, lapack
LinAlg
实现一个线性代数库,为Python写扩展。《程序猿的数学3 线性代数》读后笔记
Stars: ✭ 17 (-88.36%)
Mutual labels:  vector, matrix, linear-algebra
vec-la-fp
↗️ A tiny (functional) 2d linear algebra library
Stars: ✭ 21 (-85.62%)
Mutual labels:  math, vector, matrix

Tensor: Scientific Computing for PHP

PHP from Packagist Latest Stable Version PHP Build Extension Build Downloads from Packagist GitHub

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:

$ composer require rubix/tensor

Tensor Extension

Install the Tensor extension via PECL:

$ pecl install tensor

Note: If both the library and extension are installed, the extension will take precedence.

Requirements

  • PHP 7.4 or above

Optional To Compile Extension

Manually Compiling the Extension

Clone the repository locally using Git:

$ git clone https://github.com/RubixML/Tensor

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.

$ sudo apt-get install make gcc gfortran php-dev libopenblas-dev liblapacke-dev re2c build-essential

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.

$ cd ./ext
$ phpize
$ ./configure
$ make
$ sudo make install

Finally, add the following line to your php.ini configuration to install the extension.

extension=tensor.so

To confirm that the extension is loaded in PHP, you can run the following command.

php -m | grep tensor

Performance Comparison

Tensor Performance MNIST

Tensor Performance Benchmarks

Funding

Rubix ML 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 MIT and the documentation is licensed CC BY-NC 4.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].