Skip to content

Commit 16e50f5

Browse files
committed
Added vector late static binding
1 parent 4e2ce24 commit 16e50f5

File tree

7 files changed

+72
-67
lines changed

7 files changed

+72
-67
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
3+
*.php text eol=lf

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,5 @@ php:
55
- '7.2'
66
- '7.3'
77

8-
install:
9-
- composer install
10-
118
script:
12-
- composer analyze
13-
- composer check
14-
- composer test
9+
- composer build

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- 1.0.3
22
- Added clip upper and lower bounds
33
- Added isSquare method to Matrix
4+
- Added vector late static binding
45

56
- 1.0.2
67
- Added ref using row elimination method

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Tensor provides objects and functions for numerical computing on vectors and matrices in [PHP](https://php.net).
33

44
## Installation
5-
Install Tensor using composer:
5+
Install Tensor using [Composer](https://getcomposer.org/):
66
```sh
77
$ composer require rubix/tensor
88
```
99

10-
## Requirements
10+
## Requirementss
1111
- [PHP](https://php.net) 7.1.3 or above
1212

1313
## License

composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
}
3737
},
3838
"scripts": {
39+
"build": [
40+
"@composer install",
41+
"@analyze",
42+
"@check",
43+
"@test"
44+
],
3945
"analyze": "phpstan analyse -c phpstan.neon",
4046
"check": "php-cs-fixer fix --config=.php_cs.dist -v --dry-run --using-cache=no",
4147
"fix": "php-cs-fixer fix --config=.php_cs.dist",

lib/JAMA/SingularValueDecomposition.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ public function __construct($Arg)
337337
// Calculate the shift.
338338
$scale = max(max(
339339
max(max(
340-
abs($this->s[$p-1]),
341-
abs($this->s[$p-2])
340+
abs($this->s[$p-1]),
341+
abs($this->s[$p-2])
342342
), abs($e[$p-2])),
343-
abs($this->s[$k])
343+
abs($this->s[$k])
344344
), abs($e[$k]));
345345
$sp = $this->s[$p-1] / $scale;
346346
$spm1 = $this->s[$p-2] / $scale;

0 commit comments

Comments
 (0)