Skip to content

Commit dc0e632

Browse files
Nicer unit tests (#40)
* Initial commit * Nicer * Clean up Column Vector tests * Nicer Matrix tests * Clean up * Recompile * Appease the linters * Fix CI badge * Fix bug in polyfill * Allow some error
1 parent 50325a9 commit dc0e632

File tree

17 files changed

+2586
-1957
lines changed

17 files changed

+2586
-1957
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensor: Scientific Computing for PHP
22

3-
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rubix/tensor.svg?style=flat&colorB=8892BF)](https://www.php.net/) [![Latest Stable Version](https://img.shields.io/packagist/v/rubix/tensor.svg?style=flat&colorB=orange)](https://packagist.org/packages/rubix/tensor) [![PHP Build](https://github.com/RubixML/Tensor/workflows/Build/badge.svg)](https://github.com/RubixML/Tensor/actions) [![Extension Build](https://github.com/RubixML/Tensor/actions/workflows/ci-ext.yml/badge.svg)](https://github.com/RubixML/Tensor/actions/workflows/ci-ext.yml) [![Downloads from Packagist](https://img.shields.io/packagist/dt/rubix/tensor.svg?style=flat&colorB=red)](https://packagist.org/packages/rubix/tensor) [![GitHub](https://img.shields.io/github/license/RubixML/Tensor)](https://github.com/RubixML/Tensor/blob/master/LICENSE.md)
3+
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rubix/tensor.svg?style=flat&colorB=8892BF)](https://www.php.net/) [![Latest Stable Version](https://img.shields.io/packagist/v/rubix/tensor.svg?style=flat&colorB=orange)](https://packagist.org/packages/rubix/tensor) [![Code Checks](https://github.com/RubixML/Tensor/actions/workflows/ci.yml/badge.svg)](https://github.com/RubixML/Tensor/actions/workflows/ci.yml) [![Extension Build](https://github.com/RubixML/Tensor/actions/workflows/ci-ext.yml/badge.svg)](https://github.com/RubixML/Tensor/actions/workflows/ci-ext.yml) [![Downloads from Packagist](https://img.shields.io/packagist/dt/rubix/tensor.svg?style=flat&colorB=red)](https://packagist.org/packages/rubix/tensor) [![GitHub](https://img.shields.io/github/license/RubixML/Tensor)](https://github.com/RubixML/Tensor/blob/master/LICENSE.md)
44

55
A library and extension that provides objects for scientific computing in [PHP](https://php.net).
66
## Installation

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "The Rubix ML Community",
77
"version": "3.0.3",
88
"verbose": true,
9-
"extra-cflags": "-O3 -ffast-math",
9+
"extra-cflags": "-O3",
1010
"extra-libs": "-lopenblas -llapacke -lgfortran",
1111
"extra-sources": [
1212
"include/arithmetic.c",

ext/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if test "$PHP_TENSOR" = "yes"; then
3535
include/linear_algebra.c
3636
include/signal_processing.c
3737
include/settings.c"
38-
PHP_NEW_EXTENSION(tensor, $tensor_sources, $ext_shared,, -O3 -ffast-math)
38+
PHP_NEW_EXTENSION(tensor, $tensor_sources, $ext_shared,, -O3)
3939
PHP_ADD_BUILD_DIR([$ext_builddir/kernel/])
4040
for dir in "tensor tensor/decompositions tensor/exceptions tensor/reductions"; do
4141
PHP_ADD_BUILD_DIR([$ext_builddir/$dir])

ext/php_tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PHP_TENSOR_VERSION "3.0.3"
1515
#define PHP_TENSOR_EXTNAME "tensor"
1616
#define PHP_TENSOR_AUTHOR "The Rubix ML Community"
17-
#define PHP_TENSOR_ZEPVERSION "0.17.0-9f99da6"
17+
#define PHP_TENSOR_ZEPVERSION "0.17.0-$Id$"
1818
#define PHP_TENSOR_DESCRIPTION "A library and extension that provides objects for scientific computing in PHP."
1919

2020

ext/tensor/columnvector.zep.c

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tensor/decompositions/cholesky.zep.c

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tensor/decompositions/eigen.zep.c

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tensor/decompositions/lu.zep.c

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tensor/decompositions/svd.zep.c

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)