Skip to content

Commit bfc8208

Browse files
committed
for PHP8
1 parent c7b64f6 commit bfc8208

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"license": "BSD-3-Clause",
77
"require": {
88
"php": ">=7.2",
9-
"interop-phpobjects/polite-math": ">=1.0.3"
9+
"interop-phpobjects/polite-math": ">=1.0.4"
1010
},
1111
"suggest": {
12-
"ext-rindow_openblas": "0.2.0 strongly recommended for speed",
13-
"ext-rindow_opencl": "0.1.0 GPU/OpenCL support",
14-
"ext-rindow_clblast": "0.1.1 BLAS on GPU/OpenCL support",
12+
"ext-rindow_openblas": "0.2.1 strongly recommended for speed",
13+
"ext-rindow_opencl": "0.1.1 GPU/OpenCL support",
14+
"ext-rindow_clblast": "0.1.2 BLAS on GPU/OpenCL support",
1515
"rindow/math-plot": "for OpenCL tunning"
1616
},
1717
"autoload": {

src/PhpBlas.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function iamin(
172172
int $n,
173173
Buffer $X, int $offsetX, int $incX ) : int
174174
{
175-
if(method_exists($this->blas,'iamin')&&$this->useBlas($X)) {
175+
if($this->blas!=null && method_exists($this->blas,'iamin')&&$this->useBlas($X)) {
176176
return $this->blas->iamin($n,$X,$offsetX,$incX);
177177
}
178178

0 commit comments

Comments
 (0)