PHPackages                             rindow/rindow-math-matrix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rindow/rindow-math-matrix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rindow/rindow-math-matrix
=========================

The fundamental package for scientific matrix operation

2.1.2(1y ago)13281.5k↓15.9%3[3 issues](https://github.com/rindow/rindow-math-matrix/issues)7BSD-3-ClausePHPPHP ^8.1CI passing

Since Feb 2Pushed 1y ago3 watchersCompare

[ Source](https://github.com/rindow/rindow-math-matrix)[ Packagist](https://packagist.org/packages/rindow/rindow-math-matrix)[ RSS](/packages/rindow-rindow-math-matrix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (35)Used By (7)

The fundamental package for scientific matrix operation
=======================================================

[](#the-fundamental-package-for-scientific-matrix-operation)

Status: [![Build Status](https://github.com/rindow/rindow-math-matrix/workflows/tests/badge.svg)](https://github.com/rindow/rindow-math-matrix/actions)[![Downloads](https://camo.githubusercontent.com/98266d968e6702780bda08449e5f45c29a2f5a07b45249b20854f1a8511365f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696e646f772f72696e646f772d6d6174682d6d6174726978)](https://packagist.org/packages/rindow/rindow-math-matrix)[![Latest Stable Version](https://camo.githubusercontent.com/c16a393fe454e09ba102cd03abb26e0af732b41859b89bcc6eec916d2e832fd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e646f772f72696e646f772d6d6174682d6d6174726978)](https://packagist.org/packages/rindow/rindow-math-matrix)[![License](https://camo.githubusercontent.com/5e361e218a4598294d6e1a4c3594cd26ac4fbc96875185aa1cc441277c1e91ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e646f772f72696e646f772d6d6174682d6d6174726978)](https://packagist.org/packages/rindow/rindow-math-matrix)

Rindow Math Matrix is the fundamental package for scientific matrix operation

- A powerful N-dimensional array object
- Sophisticated (broadcasting) functions
- BLAS functions
- Functions useful for machine learning
- Tools for integrating C/C++ through the FFI (OpenBLAS,Rindow-Matlib,CLBlast etc.)
- GPU support on your laptop without n-vidia (OpenCL with Intel,AMD etc.)
- Useful linear algebra and random number capabilities

Please see the documents on [Rindow mathematics project](https://rindow.github.io/mathematics/) web pages.

Requirements
============

[](#requirements)

- PHP 8.1 or PHP8.2 or PHP8.3 or PHP8.4
- PHP7.2, PHP7.3, PHP7.4 and PHP 8.0 are not supported in this release. Please use Release 1.1, which supports them.

### Strong recommend

[](#strong-recommend)

You can perform very fast N-dimensional array operations in conjunction

- [rindow-math-matrix-matlibffi](https://github.com/rindow/rindow-math-matrix-matlibffi): plug-in drivers for OpenBLAS,Rindow-Matlib,OpenCL,CLBlast for FFI
- Pre-build binaries
    - [Rindow matlib](https://github.com/rindow/rindow-matlib/releases)
    - [OpenBLAS](https://github.com/OpenMathLib/OpenBLAS/releases)
    - [CLBlast](https://github.com/CNugteren/CLBlast/releases)

Please see the [rindow-math-matrix-matlibffi](https://github.com/rindow/rindow-math-matrix-matlibffi) to setup plug-in and pre-build binaries.

How to Setup
============

[](#how-to-setup)

Set it up using composer.

```
$ composer require rindow/rindow-math-matrix
```

You can use it as is, but you will need to speed it up to process at a practical speed.

And then, Set up pre-build binaries for the required high-speed calculation libraries. Click [here](https://github.com/rindow/rindow-math-matrix-matlibffi) for details.

```
$ composer require rindow/rindow-math-matrix-matlibffi
```

Sample programs
===============

[](#sample-programs)

```
