From b2ab23773ac62a8677266021125f3339024806a8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 1 Mar 2021 06:47:18 +0100 Subject: update to 2.2.0 --- PHPINFO | 4 +- REFLECTION | 309 ++++++++++++++++++++++++++++++++++++++++++++++++++- php-pecl-tensor.spec | 6 +- 3 files changed, 310 insertions(+), 9 deletions(-) diff --git a/PHPINFO b/PHPINFO index 6a1b006..cc056b3 100644 --- a/PHPINFO +++ b/PHPINFO @@ -5,6 +5,6 @@ tensor Tensor is a library and extension that provides objects for scientific computing in PHP. tensor => enabled Author => Andrew DalPino -Version => 2.1.4 -Build Date => Feb 21 2021 00:00:00 +Version => 2.2.0 +Build Date => Mar 1 2021 00:00:00 Powered by Zephir => Version 0.12.20-$Id$ diff --git a/REFLECTION b/REFLECTION index b4d468c..127cd1a 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,9 +1,9 @@ -Extension [ extension #105 tensor version 2.1.4 ] { +Extension [ extension #104 tensor version 2.2.0 ] { - Dependencies { } - - Classes [16] { + - Classes [21] { Interface [ interface Tensor\Arithmetic ] { - Constants [0] { @@ -352,6 +352,47 @@ Extension [ extension #105 tensor version 2.1.4 ] { } } + Interface [ interface Tensor\Exceptions\TensorException extends Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ abstract public method getMessage ] { + } + + Method [ abstract public method getCode ] { + } + + Method [ abstract public method getFile ] { + } + + Method [ abstract public method getLine ] { + } + + Method [ abstract public method getTrace ] { + } + + Method [ abstract public method getPrevious ] { + } + + Method [ abstract public method getTraceAsString ] { + } + + Method [ abstract public method __toString ] { + } + } + } + Interface [ interface Tensor\Tensor extends Tensor\ArrayLike, Countable, Traversable, IteratorAggregate, ArrayAccess, Tensor\Arithmetic, Tensor\Comparable, Tensor\Functional, Tensor\Trigonometric, Tensor\Statistical ] { - Constants [4] { @@ -670,6 +711,63 @@ Extension [ extension #105 tensor version 2.1.4 ] { } } + Class [ class Tensor\Exceptions\InvalidArgumentException extends InvalidArgumentException implements Throwable, Tensor\Exceptions\TensorException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + Class [ class Tensor\Vector implements Tensor\Tensor, Tensor\Statistical, Tensor\Trigonometric, Tensor\Functional, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { - Constants [4] { @@ -2603,7 +2701,7 @@ Extension [ extension #105 tensor version 2.1.4 ] { - Parameters [2] { Parameter #0 [ Tensor\Matrix $a ] - Parameter #1 [ bool $normalize ] + Parameter #1 [ bool $symmetric ] } - Return [ Tensor\Decompositions\Eigen ] } @@ -2627,7 +2725,7 @@ Extension [ extension #105 tensor version 2.1.4 ] { - Parameters [0] { } - - Return [ Tensor\Matrix ] + - Return [ array ] } Method [ public method eigenvectors ] { @@ -2696,6 +2794,191 @@ Extension [ extension #105 tensor version 2.1.4 ] { } } + Class [ class Tensor\Decompositions\Svd ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method decompose ] { + + - Parameters [1] { + Parameter #0 [ Tensor\Matrix $a ] + } + - Return [ Tensor\Decompositions\Svd ] + } + } + + - Properties [3] { + Property [ protected $u ] + Property [ protected $singularValues ] + Property [ protected $vT ] + } + + - Methods [6] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ Tensor\Matrix $u ] + Parameter #1 [ array $singularValues ] + Parameter #2 [ Tensor\Matrix $vT ] + } + } + + Method [ public method u ] { + + - Parameters [0] { + } + - Return [ Tensor\Matrix ] + } + + Method [ public method singularValues ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method s ] { + + - Parameters [0] { + } + - Return [ Tensor\Matrix ] + } + + Method [ public method v ] { + + - Parameters [0] { + } + - Return [ Tensor\Matrix ] + } + + Method [ public method vT ] { + + - Parameters [0] { + } + - Return [ Tensor\Matrix ] + } + } + } + + Class [ class Tensor\Exceptions\DimensionalityMismatch extends Tensor\Exceptions\InvalidArgumentException implements Tensor\Exceptions\TensorException, Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Tensor\Exceptions\RuntimeException extends RuntimeException implements Throwable, Tensor\Exceptions\TensorException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + Class [ class Tensor\Matrix implements Tensor\Tensor, Tensor\Statistical, Tensor\Trigonometric, Tensor\Functional, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { - Constants [4] { @@ -2848,7 +3131,7 @@ Extension [ extension #105 tensor version 2.1.4 ] { Property [ protected $n ] } - - Methods [148] { + - Methods [150] { Method [ public method __construct ] { - Parameters [2] { @@ -3010,6 +3293,13 @@ Extension [ extension #105 tensor version 2.1.4 ] { - Return [ Tensor\Matrix ] } + Method [ public method pseudoinverse ] { + + - Parameters [0] { + } + - Return [ Tensor\Matrix ] + } + Method [ public method det ] { } @@ -3104,11 +3394,18 @@ Extension [ extension #105 tensor version 2.1.4 ] { Method [ public method eig ] { - Parameters [1] { - Parameter #0 [ bool $normalize ] + Parameter #0 [ bool $symmetric ] } - Return [ Tensor\Decompositions\Eigen ] } + Method [ public method svd ] { + + - Parameters [0] { + } + - Return [ Tensor\Decompositions\Svd ] + } + Method [ public method solve ] { - Parameters [1] { diff --git a/php-pecl-tensor.spec b/php-pecl-tensor.spec index 06fd253..3229f90 100644 --- a/php-pecl-tensor.spec +++ b/php-pecl-tensor.spec @@ -16,7 +16,7 @@ # After 20-json %global ini_name 40-%{pecl_name}.ini -%global upstream_version 2.1.4 +%global upstream_version 2.2.0 #global upstream_prever alpha2 Summary: Objects for scientific computing in PHP @@ -82,6 +82,7 @@ sed -e 's/role="test"/role="src"/' \ mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS cd NTS +sed -e 's/\r//' -i ext/config.m4 %patch0 -p1 -b .headers %patch1 -p1 -b .libs @@ -203,6 +204,9 @@ fi %changelog +* Mon Mar 1 2021 Remi Collet - 2.2.0-1 +- update to 2.2.0 + * Sun Feb 21 2021 Remi Collet - 2.1.4-1 - update to 2.1.4 -- cgit