Skip to content

Commit

Permalink
Fix bug in polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Sep 19, 2023
1 parent 9cf46d8 commit 1a8dc98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "The Rubix ML Community",
"version": "3.0.3",
"verbose": true,
"extra-cflags": "-O3 -ffast-math",
"extra-cflags": "-O3",
"extra-libs": "-lopenblas -llapacke -lgfortran",
"extra-sources": [
"include/arithmetic.c",
Expand Down
2 changes: 1 addition & 1 deletion ext/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if test "$PHP_TENSOR" = "yes"; then
include/linear_algebra.c
include/signal_processing.c
include/settings.c"
PHP_NEW_EXTENSION(tensor, $tensor_sources, $ext_shared,, -O3 -ffast-math)
PHP_NEW_EXTENSION(tensor, $tensor_sources, $ext_shared,, -O3)
PHP_ADD_BUILD_DIR([$ext_builddir/kernel/])
for dir in "tensor tensor/decompositions tensor/exceptions tensor/reductions"; do
PHP_ADD_BUILD_DIR([$ext_builddir/$dir])
Expand Down
2 changes: 1 addition & 1 deletion src/Vector.php
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ public function lessEqualMatrix(Matrix $b) : Matrix
$rowC = [];

foreach ($this->a as $j => $valueA) {
$rowC[] = $valueA < $rowB[$j] ? 1 : 0;
$rowC[] = $valueA <= $rowB[$j] ? 1 : 0;
}

$c[] = $rowC;
Expand Down

0 comments on commit 1a8dc98

Please sign in to comment.