Skip to content

Commit

Permalink
Nicer unit tests (#40)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
andrewdalpino authored Sep 19, 2023
1 parent 50325a9 commit dc0e632
Show file tree
Hide file tree
Showing 17 changed files with 2,586 additions and 1,957 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tensor: Scientific Computing for PHP

[![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)
[![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)

A library and extension that provides objects for scientific computing in [PHP](https://php.net).
## Installation
Expand Down
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 ext/php_tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PHP_TENSOR_VERSION "3.0.3"
#define PHP_TENSOR_EXTNAME "tensor"
#define PHP_TENSOR_AUTHOR "The Rubix ML Community"
#define PHP_TENSOR_ZEPVERSION "0.17.0-9f99da6"
#define PHP_TENSOR_ZEPVERSION "0.17.0-$Id$"
#define PHP_TENSOR_DESCRIPTION "A library and extension that provides objects for scientific computing in PHP."


Expand Down
26 changes: 13 additions & 13 deletions ext/tensor/columnvector.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/tensor/decompositions/cholesky.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/tensor/decompositions/eigen.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ext/tensor/decompositions/lu.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions ext/tensor/decompositions/svd.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc0e632

Please sign in to comment.