-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
3,665 additions
and
1,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
vendor/ | ||
/.vscode/ | ||
*.log | ||
composer.lock | ||
composer.phar | ||
tests/.phpunit.* | ||
phpstan.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ | |
} | ||
} | ||
use Rindow\Math\Matrix\MatrixOperator; | ||
|
||
$mo = new MatrixOperator(); | ||
echo $mo->service()->info(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$blasCLFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$bufferCLFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$bufferFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$clblastFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$mathCLFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$mathFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$openblasFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\MatlibPhp has an unused parameter \\$openclFactory\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/MatlibPhp.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpBlas has an unused parameter \\$blas\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpBlas.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpBlas has an unused parameter \\$forceBlas\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpBlas.php | ||
|
||
- | ||
message: "#^Class SplFixedArray specifies template type TKey of interface ArrayAccess as int but it's already specified as mixed\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpBuffer.php | ||
|
||
- | ||
message: "#^Comparison operation \"\\>\\=\" between int\\<0, max\\> and 0 is always true\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpLapack.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpLapack has an unused parameter \\$forceLapack\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpLapack.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpLapack has an unused parameter \\$lapack\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpLapack.php | ||
|
||
- | ||
message: "#^Comparison operation \"\\>\" between 2 and 1 is always true\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpMath.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpMath has an unused parameter \\$forceMath\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpMath.php | ||
|
||
- | ||
message: "#^Constructor of class Rindow\\\\Math\\\\Matrix\\\\Drivers\\\\MatlibPHP\\\\PhpMath has an unused parameter \\$math\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpMath.php | ||
|
||
- | ||
message: "#^Else branch is unreachable because previous condition is always true\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpMath.php | ||
|
||
- | ||
message: "#^If condition is always false\\.$#" | ||
count: 1 | ||
path: src/Drivers/MatlibPHP/PhpMath.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\Buffer\\:\\:copy\\(\\)\\.$#" | ||
count: 2 | ||
path: src/LinearAlgebraCL.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\Buffer\\:\\:fill\\(\\)\\.$#" | ||
count: 1 | ||
path: src/LinearAlgebraCL.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray\\:\\:getEvents\\(\\)\\.$#" | ||
count: 1 | ||
path: src/LinearAlgebraCL.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray\\:\\:toNDArray\\(\\)\\.$#" | ||
count: 1 | ||
path: src/LinearAlgebraCL.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray\\:\\:valueSize\\(\\)\\.$#" | ||
count: 1 | ||
path: src/LinearAlgebraCL.php | ||
|
||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray\\:\\:serialize\\(\\)\\.$#" | ||
count: 1 | ||
path: src/MatrixOperator.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\.*[Device\\|Linear]*Buffer\\:\\:dtype\\(\\)#" | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\.*[Device\\|Linear]*Buffer\\:\\:dump\\(\\)#" | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\.*[Device\\|Linear]*Buffer\\:\\:value_size\\(\\)#" | ||
- | ||
message: "#function count expects array|Countable, Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray given#" | ||
- | ||
message: "#^Argument of an invalid type Interop\\\\Polite\\\\Math\\\\Matrix\\\\NDArray supplied for foreach, only iterables are supported#" | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\DeviceBuffer\\:\\:bytes\\(\\)#" | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\DeviceBuffer\\:\\:copy\\(\\)#" | ||
- | ||
message: "#^Call to an undefined method Interop\\\\Polite\\\\Math\\\\Matrix\\\\DeviceBuffer\\:\\:read\\(\\)#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
includes: | ||
- phpstan-interop.neon | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 6 | ||
paths: | ||
- src | ||
excludePaths: | ||
- src/Drivers/MatlibCL/OpenCLMathTunner.php | ||
|
||
# ignoreErrors: | ||
# level 7 | ||
# - | ||
# message: "#^Call to an undefined method object::#" | ||
# - | ||
# message: "#^Access to an undefined property object::\\$real#" | ||
# path: src/ComplexUtils.php | ||
# - | ||
# message: "#^Access to an undefined property object::\\$imag#" | ||
# path: src/ComplexUtils.php | ||
# level 8 | ||
# - | ||
# message: "#^Cannot access property \\$real#" | ||
# - | ||
# message: "#^Cannot access property \\$imag#" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.