@@ -7,9 +7,9 @@ operators of comparison, addition, multiplication, casting and much more!
7
7
8
8
This library is first ever userland PHP extension, that implements operator overloading for the ` Matrix ` class.
9
9
10
- [ ![ GitHub release] ( https://img.shields.io/github/release/lisachenko/native-types .svg )] ( https://github.com/lisachenko/native-types /releases/latest )
10
+ [ ![ GitHub release] ( https://img.shields.io/github/release/lisachenko/native-php-matrix .svg )] ( https://github.com/lisachenko/native-php-matrix /releases/latest )
11
11
[ ![ Minimum PHP Version] ( http://img.shields.io/badge/php-%3E%3D%207.4-8892BF.svg )] ( https://php.net/ )
12
- [ ![ License] ( https://img.shields.io/packagist/l/lisachenko/native-types .svg )] ( https://packagist.org/packages/lisachenko/native-types )
12
+ [ ![ License] ( https://img.shields.io/packagist/l/lisachenko/native-php-matrix .svg )] ( https://packagist.org/packages/lisachenko/native-php-matrix )
13
13
14
14
15
15
Pre-requisites and initialization
@@ -20,7 +20,7 @@ As this library depends on `FFI`, it requires PHP>=7.4 and `FFI` extension to be
20
20
21
21
To install this library, simply add it via ` composer ` :
22
22
``` bash
23
- composer require lisachenko/native-types
23
+ composer require lisachenko/native-php-matrix
24
24
```
25
25
26
26
Now you can test it with following example:
@@ -39,9 +39,9 @@ $value = $first * 2 + $second; // Matrix([[22, 44, 66]])
39
39
Supported features:
40
40
- [x] Matrices addition (` $matrixA + $matrixB ` )
41
41
- [x] Matrices subtraction (` $matrixA - $matrixB ` )
42
+ - [x] Matrix multiplication by number (` $matrixA * 2 ` )
42
43
- [x] Matrices multiplication (` $matrixA * $matrixB ` )
43
- - [x] Matrices division (` $matrixA / $matrixB ` )
44
- - [x] Matrices division (` $matrixA / $matrixB ` )
44
+ - [x] Dividing a matrix by a number (` $matrixA / 2 ` )
45
45
- [x] Matrices equality check (` $matrixA == $matrixB ` )
46
46
47
47
For the future versions, I would like to implement native SSE/AVX assembly methods to improve the performance of calculation.
0 commit comments