From 7ecfb6a19e40c7aaefe1a6432c656bf605842e6d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 May 2021 09:15:33 +0200 Subject: update to 3.0.0 (beta) raise dependency on PHP 7.4 --- PHPINFO | 4 +- REFLECTION | 982 ++++++++++++++++++++++++++++----------------------- php-pecl-tensor.spec | 12 +- tensor-libs.patch | 2 +- 4 files changed, 541 insertions(+), 459 deletions(-) diff --git a/PHPINFO b/PHPINFO index ee6e28c..8da9d38 100644 --- a/PHPINFO +++ b/PHPINFO @@ -5,6 +5,6 @@ tensor A library and extension that provides objects for scientific computing in PHP. tensor => enabled Author => Andrew DalPino -Version => 2.2.3 +Version => 3.0.0-beta Build Date => May 25 2021 00:00:00 -Powered by Zephir => Version 0.12.21-$Id$ +Powered by Zephir => Version 0.13.5-$Id$ diff --git a/REFLECTION b/REFLECTION index f900ae0..8a11e10 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,9 +1,101 @@ -Extension [ extension #102 tensor version 2.2.3 ] { +Extension [ extension #102 tensor version 3.0.0-beta ] { - Dependencies { } - - Classes [21] { + - Classes [22] { + Interface [ interface Tensor\Algebraic ] { + + - Constants [1] { + Constant [ public float M_E ] { 2.718281828459 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ abstract public method abs ] { + + - Parameters [0] { + } + } + + Method [ abstract public method square ] { + + - Parameters [0] { + } + } + + Method [ abstract public method sqrt ] { + + - Parameters [0] { + } + } + + Method [ abstract public method exp ] { + + - Parameters [0] { + } + } + + Method [ abstract public method expm1 ] { + + - Parameters [0] { + } + } + + Method [ abstract public method log ] { + + - Parameters [1] { + Parameter #0 [ float $base ] + } + } + + Method [ abstract public method log1p ] { + + - Parameters [0] { + } + } + + Method [ abstract public method round ] { + + - Parameters [1] { + Parameter #0 [ int $precision ] + } + } + + Method [ abstract public method floor ] { + + - Parameters [0] { + } + } + + Method [ abstract public method ceil ] { + + - Parameters [0] { + } + } + + Method [ abstract public method sign ] { + + - Parameters [0] { + } + } + + Method [ abstract public method negate ] { + + - Parameters [0] { + } + } + } + } + Interface [ interface Tensor\Arithmetic ] { - Constants [0] { @@ -77,7 +169,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Properties [0] { } - - Methods [9] { + - Methods [12] { Method [ abstract public method shape ] { - Parameters [0] { @@ -85,6 +177,13 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ array ] } + Method [ abstract public method shapeString ] { + + - Parameters [0] { + } + - Return [ string ] + } + Method [ abstract public method size ] { - Parameters [0] { @@ -92,6 +191,22 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ int ] } + Method [ abstract public method map ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ abstract public method reduce ] { + + - Parameters [2] { + Parameter #0 [ $callback ] + Parameter #1 [ float $initial ] + } + - Return [ float ] + } + Method [ abstract public method asArray ] { - Parameters [0] { @@ -198,10 +313,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { } } - Interface [ interface Tensor\Functional ] { + Interface [ interface Tensor\Special ] { - - Constants [1] { - Constant [ public float M_E ] { 2.718281828459 } + - Constants [0] { } - Static properties [0] { @@ -213,61 +327,51 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Properties [0] { } - - Methods [16] { - Method [ abstract public method abs ] { - } - - Method [ abstract public method square ] { - } + - Methods [7] { + Method [ abstract public method sum ] { - Method [ abstract public method sqrt ] { + - Parameters [0] { + } } - Method [ abstract public method exp ] { - } + Method [ abstract public method product ] { - Method [ abstract public method expm1 ] { + - Parameters [0] { + } } - Method [ abstract public method log ] { + Method [ abstract public method min ] { - - Parameters [1] { - Parameter #0 [ float $base ] + - Parameters [0] { } } - Method [ abstract public method log1p ] { - } - - Method [ abstract public method sum ] { - } + Method [ abstract public method max ] { - Method [ abstract public method product ] { + - Parameters [0] { + } } - Method [ abstract public method min ] { - } + Method [ abstract public method clip ] { - Method [ abstract public method max ] { + - Parameters [2] { + Parameter #0 [ float $min ] + Parameter #1 [ float $max ] + } } - Method [ abstract public method round ] { + Method [ abstract public method clipLower ] { - Parameters [1] { - Parameter #0 [ int $precision ] + Parameter #0 [ float $min ] } } - Method [ abstract public method floor ] { - } - - Method [ abstract public method ceil ] { - } - - Method [ abstract public method sign ] { - } + Method [ abstract public method clipUpper ] { - Method [ abstract public method negate ] { + - Parameters [1] { + Parameter #0 [ float $max ] + } } } } @@ -288,6 +392,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Methods [4] { Method [ abstract public method mean ] { + + - Parameters [0] { + } } Method [ abstract public method variance ] { @@ -298,6 +405,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { } Method [ abstract public method median ] { + + - Parameters [0] { + } } Method [ abstract public method quantile ] { @@ -327,27 +437,51 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Methods [8] { Method [ abstract public method sin ] { + + - Parameters [0] { + } } Method [ abstract public method asin ] { + + - Parameters [0] { + } } Method [ abstract public method cos ] { + + - Parameters [0] { + } } Method [ abstract public method acos ] { + + - Parameters [0] { + } } Method [ abstract public method tan ] { + + - Parameters [0] { + } } Method [ abstract public method atan ] { + + - Parameters [0] { + } } Method [ abstract public method rad2deg ] { + + - Parameters [0] { + } } Method [ abstract public method deg2rad ] { + + - Parameters [0] { + } } } } @@ -393,7 +527,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { } } - Interface [ interface Tensor\Tensor extends Tensor\ArrayLike, Countable, Traversable, IteratorAggregate, ArrayAccess, Tensor\Arithmetic, Tensor\Comparable, Tensor\Functional, Tensor\Trigonometric, Tensor\Statistical ] { + Interface [ interface Tensor\Tensor extends Tensor\ArrayLike, Countable, Traversable, IteratorAggregate, ArrayAccess, Tensor\Arithmetic, Tensor\Comparable, Tensor\Algebraic, Tensor\Trigonometric, Tensor\Statistical, Tensor\Special ] { - Constants [4] { Constant [ public float EPSILON ] { 1.0E-8 } @@ -411,73 +545,42 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Properties [0] { } - - Methods [57] { - Method [ abstract public method map ] { - - - Parameters [1] { - Parameter #0 [ $callback ] - } - } - - Method [ abstract public method reduce ] { - - - Parameters [2] { - Parameter #0 [ $callback ] - Parameter #1 [ $initial ] - } - } - - Method [ abstract public method transpose ] { - } - - Method [ abstract public method clip ] { - - - Parameters [2] { - Parameter #0 [ float $min ] - Parameter #1 [ float $max ] - } - } - - Method [ abstract public method clipLower ] { - - - Parameters [1] { - Parameter #0 [ float $min ] - } - } - - Method [ abstract public method clipUpper ] { + - Methods [55] { + Method [ abstract public method shape ] { - - Parameters [1] { - Parameter #0 [ float $max ] + - Parameters [0] { } + - Return [ array ] } - Method [ abstract public method shapeString ] { + Method [ abstract public method shapeString ] { - Parameters [0] { } - Return [ string ] } - Method [ abstract public method __toString ] { + Method [ abstract public method size ] { - Parameters [0] { } - - Return [ string ] + - Return [ int ] } - Method [ abstract public method shape ] { + Method [ abstract public method map ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $callback ] } - - Return [ array ] } - Method [ abstract public method size ] { + Method [ abstract public method reduce ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ $callback ] + Parameter #1 [ float $initial ] } - - Return [ int ] + - Return [ float ] } Method [ abstract public method asArray ] { @@ -609,87 +712,132 @@ Extension [ extension #102 tensor version 2.2.3 ] { } } - Method [ abstract public method abs ] { - } + Method [ abstract public method abs ] { - Method [ abstract public method square ] { + - Parameters [0] { + } } - Method [ abstract public method sqrt ] { - } + Method [ abstract public method square ] { - Method [ abstract public method exp ] { + - Parameters [0] { + } } - Method [ abstract public method expm1 ] { + Method [ abstract public method sqrt ] { + + - Parameters [0] { + } } - Method [ abstract public method log ] { + Method [ abstract public method exp ] { - - Parameters [1] { - Parameter #0 [ float $base ] + - Parameters [0] { } } - Method [ abstract public method log1p ] { - } + Method [ abstract public method expm1 ] { - Method [ abstract public method sum ] { + - Parameters [0] { + } } - Method [ abstract public method product ] { - } + Method [ abstract public method log ] { - Method [ abstract public method min ] { + - Parameters [1] { + Parameter #0 [ float $base ] + } } - Method [ abstract public method max ] { + Method [ abstract public method log1p ] { + + - Parameters [0] { + } } - Method [ abstract public method round ] { + Method [ abstract public method round ] { - Parameters [1] { Parameter #0 [ int $precision ] } } - Method [ abstract public method floor ] { + Method [ abstract public method floor ] { + + - Parameters [0] { + } } - Method [ abstract public method ceil ] { + Method [ abstract public method ceil ] { + + - Parameters [0] { + } } - Method [ abstract public method sign ] { + Method [ abstract public method sign ] { + + - Parameters [0] { + } } - Method [ abstract public method negate ] { + Method [ abstract public method negate ] { + + - Parameters [0] { + } } Method [ abstract public method sin ] { + + - Parameters [0] { + } } Method [ abstract public method asin ] { + + - Parameters [0] { + } } Method [ abstract public method cos ] { + + - Parameters [0] { + } } Method [ abstract public method acos ] { + + - Parameters [0] { + } } Method [ abstract public method tan ] { + + - Parameters [0] { + } } Method [ abstract public method atan ] { + + - Parameters [0] { + } } Method [ abstract public method rad2deg ] { + + - Parameters [0] { + } } Method [ abstract public method deg2rad ] { + + - Parameters [0] { + } } Method [ abstract public method mean ] { + + - Parameters [0] { + } } Method [ abstract public method variance ] { @@ -700,6 +848,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { } Method [ abstract public method median ] { + + - Parameters [0] { + } } Method [ abstract public method quantile ] { @@ -708,6 +859,52 @@ Extension [ extension #102 tensor version 2.2.3 ] { Parameter #0 [ float $q ] } } + + Method [ abstract public method sum ] { + + - Parameters [0] { + } + } + + Method [ abstract public method product ] { + + - Parameters [0] { + } + } + + Method [ abstract public method min ] { + + - Parameters [0] { + } + } + + Method [ abstract public method max ] { + + - Parameters [0] { + } + } + + Method [ abstract public method clip ] { + + - Parameters [2] { + Parameter #0 [ float $min ] + Parameter #1 [ float $max ] + } + } + + Method [ abstract public method clipLower ] { + + - Parameters [1] { + Parameter #0 [ float $min ] + } + } + + Method [ abstract public method clipUpper ] { + + - Parameters [1] { + Parameter #0 [ float $max ] + } + } } } @@ -768,7 +965,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { } } - Class [ class Tensor\Vector implements Tensor\Tensor, Tensor\Statistical, Tensor\Trigonometric, Tensor\Functional, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { + Class [ class Tensor\Vector implements Tensor\Tensor, Tensor\Special, Tensor\Statistical, Tensor\Trigonometric, Tensor\Algebraic, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { - Constants [4] { Constant [ public float EPSILON ] { 1.0E-8 } @@ -780,7 +977,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Static properties [0] { } - - Static methods [13] { + - Static methods [11] { Method [ static public method build ] { - Parameters [1] { @@ -814,7 +1011,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ static public method fill ] { - Parameters [2] { - Parameter #0 [ $value ] + Parameter #0 [ float $value ] Parameter #1 [ int $n ] } - Return [ Tensor\Vector ] @@ -856,9 +1053,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ static public method range ] { - Parameters [3] { - Parameter #0 [ $start ] - Parameter #1 [ $end ] - Parameter #2 [ $interval ] + Parameter #0 [ float $start ] + Parameter #1 [ float $end ] + Parameter #2 [ float $interval ] } - Return [ Tensor\Vector ] } @@ -872,24 +1069,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { } - Return [ Tensor\Vector ] } - - Method [ static public method maximum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Vector $a ] - Parameter #1 [ Tensor\Vector $b ] - } - - Return [ Tensor\Vector ] - } - - Method [ static public method minimum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Vector $a ] - Parameter #1 [ Tensor\Vector $b ] - } - - Return [ Tensor\Vector ] - } } - Properties [2] { @@ -897,7 +1076,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Property [ protected $n ] } - - Methods [113] { + - Methods [108] { Method [ public method __construct ] { - Parameters [2] { @@ -913,7 +1092,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ array ] } - Method [ public method shapeString ] { + Method [ public method shapeString ] { - Parameters [0] { } @@ -971,24 +1150,10 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method transpose ] { - } - - Method [ public method argmin ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method argmax ] { - - - Parameters [0] { - } - - Return [ int ] + Method [ public method transpose ] { } - Method [ public method map ] { + Method [ public method map ] { - Parameters [1] { Parameter #0 [ $callback ] @@ -996,12 +1161,13 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method reduce ] { + Method [ public method reduce ] { - Parameters [2] { Parameter #0 [ $callback ] - Parameter #1 [ $initial ] + Parameter #1 [ float $initial ] } + - Return [ float ] } Method [ public method dot ] { @@ -1034,6 +1200,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ Tensor\Vector $b ] } + - Return [ float ] } Method [ public method outer ] { @@ -1044,26 +1211,18 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method cross ] { + Method [ public method l1Norm ] { - - Parameters [1] { - Parameter #0 [ Tensor\Vector $b ] + - Parameters [0] { } - - Return [ Tensor\Vector ] + - Return [ float ] } - Method [ public method project ] { + Method [ public method l2Norm ] { - - Parameters [1] { - Parameter #0 [ Tensor\Vector $b ] + - Parameters [0] { } - - Return [ Tensor\Vector ] - } - - Method [ public method l1Norm ] { - } - - Method [ public method l2Norm ] { + - Return [ float ] } Method [ public method pNorm ] { @@ -1071,9 +1230,14 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ float $p ] } + - Return [ float ] } Method [ public method maxNorm ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method multiply ] { @@ -1167,42 +1331,42 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method abs ] { + Method [ public method abs ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method square ] { + Method [ public method square ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method sqrt ] { + Method [ public method sqrt ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method exp ] { + Method [ public method exp ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method expm1 ] { + Method [ public method expm1 ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method log ] { + Method [ public method log ] { - Parameters [1] { Parameter #0 [ float $base ] @@ -1210,7 +1374,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method log1p ] { + Method [ public method log1p ] { - Parameters [0] { } @@ -1273,22 +1437,46 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method sum ] { + Method [ public method sum ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method product ] { + Method [ public method product ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method min ] { + Method [ public method min ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method max ] { + Method [ public method max ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method mean ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method median ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method quantile ] { @@ -1296,6 +1484,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ float $q ] } + - Return [ float ] } Method [ public method variance ] { @@ -1303,9 +1492,10 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ $mean ] } + - Return [ float ] } - Method [ public method round ] { + Method [ public method round ] { - Parameters [1] { Parameter #0 [ int $precision ] @@ -1313,21 +1503,21 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method floor ] { + Method [ public method floor ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method ceil ] { + Method [ public method ceil ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method clip ] { + Method [ public method clip ] { - Parameters [2] { Parameter #0 [ float $min ] @@ -1336,7 +1526,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method clipLower ] { + Method [ public method clipLower ] { - Parameters [1] { Parameter #0 [ float $min ] @@ -1344,7 +1534,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method clipUpper ] { + Method [ public method clipUpper ] { - Parameters [1] { Parameter #0 [ float $max ] @@ -1352,14 +1542,14 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method sign ] { + Method [ public method sign ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method negate ] { + Method [ public method negate ] { - Parameters [0] { } @@ -1561,7 +1751,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method multiplyScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1569,7 +1759,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method divideScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1577,7 +1767,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method addScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1585,7 +1775,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method subtractScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1593,7 +1783,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method powScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1601,7 +1791,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method modScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1609,7 +1799,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method equalScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1617,7 +1807,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method notEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1625,7 +1815,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1633,7 +1823,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1641,7 +1831,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1649,7 +1839,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -1695,17 +1885,10 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method getIterator ] { } - - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } } } - Class [ class Tensor\ColumnVector extends Tensor\Vector implements Tensor\ArrayLike, Countable, Traversable, IteratorAggregate, ArrayAccess, Tensor\Arithmetic, Tensor\Comparable, Tensor\Functional, Tensor\Trigonometric, Tensor\Statistical, Tensor\Tensor ] { + Class [ class Tensor\ColumnVector extends Tensor\Vector implements Tensor\ArrayLike, Countable, Traversable, IteratorAggregate, ArrayAccess, Tensor\Arithmetic, Tensor\Comparable, Tensor\Algebraic, Tensor\Trigonometric, Tensor\Statistical, Tensor\Special, Tensor\Tensor ] { - Constants [4] { Constant [ public float EPSILON ] { 1.0E-8 } @@ -1717,7 +1900,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Static properties [0] { } - - Static methods [13] { + - Static methods [11] { Method [ static public method build ] { - Parameters [1] { @@ -1751,7 +1934,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ static public method fill ] { - Parameters [2] { - Parameter #0 [ $value ] + Parameter #0 [ float $value ] Parameter #1 [ int $n ] } - Return [ Tensor\Vector ] @@ -1793,9 +1976,9 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ static public method range ] { - Parameters [3] { - Parameter #0 [ $start ] - Parameter #1 [ $end ] - Parameter #2 [ $interval ] + Parameter #0 [ float $start ] + Parameter #1 [ float $end ] + Parameter #2 [ float $interval ] } - Return [ Tensor\Vector ] } @@ -1809,24 +1992,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { } - Return [ Tensor\Vector ] } - - Method [ static public method maximum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Vector $a ] - Parameter #1 [ Tensor\Vector $b ] - } - - Return [ Tensor\Vector ] - } - - Method [ static public method minimum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Vector $a ] - Parameter #1 [ Tensor\Vector $b ] - } - - Return [ Tensor\Vector ] - } } - Properties [2] { @@ -1834,7 +1999,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Property [ protected $n ] } - - Methods [113] { + - Methods [108] { Method [ public method m ] { - Parameters [0] { @@ -1849,7 +2014,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ int ] } - Method [ public method transpose ] { + Method [ public method transpose ] { } Method [ public method matmul ] { @@ -1971,7 +2136,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ array ] } - Method [ public method shapeString ] { + Method [ public method shapeString ] { - Parameters [0] { } @@ -2015,21 +2180,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method argmin ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method argmax ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method map ] { + Method [ public method map ] { - Parameters [1] { Parameter #0 [ $callback ] @@ -2037,12 +2188,13 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method reduce ] { + Method [ public method reduce ] { - Parameters [2] { Parameter #0 [ $callback ] - Parameter #1 [ $initial ] + Parameter #1 [ float $initial ] } + - Return [ float ] } Method [ public method dot ] { @@ -2067,6 +2219,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ Tensor\Vector $b ] } + - Return [ float ] } Method [ public method outer ] { @@ -2077,26 +2230,18 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method cross ] { + Method [ public method l1Norm ] { - - Parameters [1] { - Parameter #0 [ Tensor\Vector $b ] + - Parameters [0] { } - - Return [ Tensor\Vector ] + - Return [ float ] } - Method [ public method project ] { + Method [ public method l2Norm ] { - - Parameters [1] { - Parameter #0 [ Tensor\Vector $b ] + - Parameters [0] { } - - Return [ Tensor\Vector ] - } - - Method [ public method l1Norm ] { - } - - Method [ public method l2Norm ] { + - Return [ float ] } Method [ public method pNorm ] { @@ -2104,9 +2249,14 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ float $p ] } + - Return [ float ] } Method [ public method maxNorm ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method multiply ] { @@ -2200,42 +2350,42 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method abs ] { + Method [ public method abs ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method square ] { + Method [ public method square ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method sqrt ] { + Method [ public method sqrt ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method exp ] { + Method [ public method exp ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method expm1 ] { + Method [ public method expm1 ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method log ] { + Method [ public method log ] { - Parameters [1] { Parameter #0 [ float $base ] @@ -2243,7 +2393,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method log1p ] { + Method [ public method log1p ] { - Parameters [0] { } @@ -2306,22 +2456,46 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method sum ] { + Method [ public method sum ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method product ] { + Method [ public method product ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method min ] { + Method [ public method min ] { + + - Parameters [0] { + } + - Return [ float ] } - Method [ public method max ] { + Method [ public method max ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method mean ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method median ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method quantile ] { @@ -2329,6 +2503,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ float $q ] } + - Return [ float ] } Method [ public method variance ] { @@ -2336,9 +2511,10 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Parameters [1] { Parameter #0 [ $mean ] } + - Return [ float ] } - Method [ public method round ] { + Method [ public method round ] { - Parameters [1] { Parameter #0 [ int $precision ] @@ -2346,21 +2522,21 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method floor ] { + Method [ public method floor ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method ceil ] { + Method [ public method ceil ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method clip ] { + Method [ public method clip ] { - Parameters [2] { Parameter #0 [ float $min ] @@ -2369,7 +2545,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method clipLower ] { + Method [ public method clipLower ] { - Parameters [1] { Parameter #0 [ float $min ] @@ -2377,7 +2553,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method clipUpper ] { + Method [ public method clipUpper ] { - Parameters [1] { Parameter #0 [ float $max ] @@ -2385,14 +2561,14 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method sign ] { + Method [ public method sign ] { - Parameters [0] { } - Return [ Tensor\Vector ] } - Method [ public method negate ] { + Method [ public method negate ] { - Parameters [0] { } @@ -2498,7 +2674,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method multiplyScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2506,7 +2682,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method divideScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2514,7 +2690,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method addScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2522,7 +2698,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method subtractScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2530,7 +2706,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method powScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2538,7 +2714,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method modScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2546,7 +2722,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method equalScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2554,7 +2730,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method notEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2562,7 +2738,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2570,7 +2746,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2578,7 +2754,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2586,7 +2762,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Vector ] } @@ -2632,13 +2808,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method getIterator ] { } - - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } } } @@ -2979,7 +3148,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { } } - Class [ class Tensor\Matrix implements Tensor\Tensor, Tensor\Statistical, Tensor\Trigonometric, Tensor\Functional, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { + Class [ class Tensor\Matrix implements Tensor\Tensor, Tensor\Special, Tensor\Statistical, Tensor\Trigonometric, Tensor\Algebraic, Tensor\Comparable, Tensor\Arithmetic, ArrayAccess, IteratorAggregate, Traversable, Countable, Tensor\ArrayLike ] { - Constants [4] { Constant [ public float EPSILON ] { 1.0E-8 } @@ -2991,7 +3160,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Static properties [0] { } - - Static methods [15] { + - Static methods [11] { Method [ static public method build ] { - Parameters [1] { @@ -3045,7 +3214,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ static public method fill ] { - Parameters [3] { - Parameter #0 [ $value ] + Parameter #0 [ float $value ] Parameter #1 [ int $m ] Parameter #2 [ int $n ] } @@ -3088,41 +3257,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { } - Return [ Tensor\Matrix ] } - - Method [ static public method minimum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Matrix $a ] - Parameter #1 [ Tensor\Matrix $b ] - } - - Return [ Tensor\Matrix ] - } - - Method [ static public method maximum ] { - - - Parameters [2] { - Parameter #0 [ Tensor\Matrix $a ] - Parameter #1 [ Tensor\Matrix $b ] - } - - Return [ Tensor\Matrix ] - } - - Method [ static public method stack ] { - - - Parameters [1] { - Parameter #0 [ array $vectors ] - } - - Return [ Tensor\Matrix ] - } - - Method [ static protected method implodeRow ] { - - - Parameters [2] { - Parameter #0 [ string $carry ] - Parameter #1 [ array $row ] - } - - Return [ string ] - } } - Properties [3] { @@ -3131,7 +3265,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Property [ protected $n ] } - - Methods [150] { + - Methods [141] { Method [ public method __construct ] { - Parameters [2] { @@ -3147,7 +3281,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ array ] } - Method [ public method shapeString ] { + Method [ public method shapeString ] { - Parameters [0] { } @@ -3182,14 +3316,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ int ] } - Method [ public method row ] { - - - Parameters [1] { - Parameter #0 [ int $index ] - } - - Return [ array ] - } - Method [ public method rowAsVector ] { - Parameters [1] { @@ -3198,14 +3324,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method column ] { - - - Parameters [1] { - Parameter #0 [ int $index ] - } - - Return [ array ] - } - Method [ public method columnAsVector ] { - Parameters [1] { @@ -3249,21 +3367,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Vector ] } - Method [ public method argmin ] { - - - Parameters [0] { - } - - Return [ Tensor\ColumnVector ] - } - - Method [ public method argmax ] { - - - Parameters [0] { - } - - Return [ Tensor\ColumnVector ] - } - - Method [ public method map ] { + Method [ public method map ] { - Parameters [1] { Parameter #0 [ $callback ] @@ -3271,15 +3375,16 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method reduce ] { + Method [ public method reduce ] { - Parameters [2] { Parameter #0 [ $callback ] - Parameter #1 [ $initial ] + Parameter #1 [ float $initial ] } + - Return [ float ] } - Method [ public method transpose ] { + Method [ public method transpose ] { - Parameters [0] { } @@ -3301,37 +3406,34 @@ Extension [ extension #102 tensor version 2.2.3 ] { } Method [ public method det ] { - } - - Method [ public method rank ] { - Parameters [0] { } - - Return [ int ] + - Return [ float ] } - Method [ public method fullRank ] { + Method [ public method trace ] { - Parameters [0] { } - - Return [ bool ] + - Return [ float ] } - Method [ public method symmetric ] { + Method [ public method rank ] { - Parameters [0] { } - - Return [ bool ] + - Return [ int ] } - Method [ public method positiveDefinite ] { + Method [ public method fullRank ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method positiveSemidefinite ] { + Method [ public method symmetric ] { - Parameters [0] { } @@ -3406,24 +3508,32 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Decompositions\Svd ] } - Method [ public method solve ] { + Method [ public method l1Norm ] { - - Parameters [1] { - Parameter #0 [ Tensor\Vector $b ] + - Parameters [0] { } - - Return [ Tensor\ColumnVector ] - } - - Method [ public method l1Norm ] { + - Return [ float ] } Method [ public method l2Norm ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method infinityNorm ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method maxNorm ] { + + - Parameters [0] { + } + - Return [ float ] } Method [ public method multiply ] { @@ -3517,42 +3627,42 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method abs ] { + Method [ public method abs ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method square ] { + Method [ public method square ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method sqrt ] { + Method [ public method sqrt ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method exp ] { + Method [ public method exp ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method expm1 ] { + Method [ public method expm1 ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method log ] { + Method [ public method log ] { - Parameters [1] { Parameter #0 [ float $base ] @@ -3560,7 +3670,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method log1p ] { + Method [ public method log1p ] { - Parameters [0] { } @@ -3623,28 +3733,28 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method sum ] { + Method [ public method sum ] { - Parameters [0] { } - Return [ Tensor\ColumnVector ] } - Method [ public method product ] { + Method [ public method product ] { - Parameters [0] { } - Return [ Tensor\ColumnVector ] } - Method [ public method min ] { + Method [ public method min ] { - Parameters [0] { } - Return [ Tensor\ColumnVector ] } - Method [ public method max ] { + Method [ public method max ] { - Parameters [0] { } @@ -3689,7 +3799,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method round ] { + Method [ public method round ] { - Parameters [1] { Parameter #0 [ int $precision ] @@ -3697,21 +3807,21 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method floor ] { + Method [ public method floor ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method ceil ] { + Method [ public method ceil ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method clip ] { + Method [ public method clip ] { - Parameters [2] { Parameter #0 [ float $min ] @@ -3720,7 +3830,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method clipLower ] { + Method [ public method clipLower ] { - Parameters [1] { Parameter #0 [ float $min ] @@ -3728,7 +3838,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method clipUpper ] { + Method [ public method clipUpper ] { - Parameters [1] { Parameter #0 [ float $max ] @@ -3736,41 +3846,20 @@ Extension [ extension #102 tensor version 2.2.3 ] { - Return [ Tensor\Matrix ] } - Method [ public method sign ] { + Method [ public method sign ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method negate ] { + Method [ public method negate ] { - Parameters [0] { } - Return [ Tensor\Matrix ] } - Method [ public method insert ] { - - - Parameters [3] { - Parameter #0 [ Tensor\Matrix $b ] - Parameter #1 [ int $rowOffset ] - Parameter #2 [ int $columnOffset ] - } - - Return [ Tensor\Matrix ] - } - - Method [ public method subMatrix ] { - - - Parameters [4] { - Parameter #0 [ int $startRow ] - Parameter #1 [ int $startColumn ] - Parameter #2 [ int $endRow ] - Parameter #3 [ int $endColumn ] - } - - Return [ Tensor\Matrix ] - } - Method [ public method augmentAbove ] { - Parameters [1] { @@ -4103,7 +4192,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method multiplyScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4111,7 +4200,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method divideScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4119,7 +4208,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method addScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4127,7 +4216,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method subtractScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4135,7 +4224,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method powScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4143,7 +4232,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method modScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4151,7 +4240,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method equalScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4159,7 +4248,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method notEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4167,7 +4256,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4175,7 +4264,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method greaterEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4183,7 +4272,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4191,7 +4280,7 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method lessEqualScalar ] { - Parameters [1] { - Parameter #0 [ $b ] + Parameter #0 [ float $b ] } - Return [ Tensor\Matrix ] } @@ -4238,13 +4327,6 @@ Extension [ extension #102 tensor version 2.2.3 ] { Method [ public method getIterator ] { } - - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } } } diff --git a/php-pecl-tensor.spec b/php-pecl-tensor.spec index e1718df..887ebd2 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.2.3 +%global upstream_version 3.0.0 #global upstream_prever alpha2 Summary: Objects for scientific computing in PHP @@ -32,7 +32,7 @@ Patch1: tensor-libs.patch BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.2 +BuildRequires: %{?scl_prefix}php-devel >= 7.4 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json BuildRequires: openblas-devel @@ -52,12 +52,8 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -%if "%{php_version}" > "8.0" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif @@ -204,6 +200,10 @@ fi %changelog +* Tue May 25 2021 Remi Collet - 3.0.0-1 +- update to 3.0.0 (beta) +- raise dependency on PHP 7.4 + * Tue May 25 2021 Remi Collet - 2.2.3-1 - update to 2.2.3 diff --git a/tensor-libs.patch b/tensor-libs.patch index 319fb0f..c7855cf 100644 --- a/tensor-libs.patch +++ b/tensor-libs.patch @@ -12,4 +12,4 @@ index 2b130c0..90b7e1c 100644 + PHP_EVAL_LIBLINE(-lopenblas, TENSOR_SHARED_LIBADD) AC_DEFINE(HAVE_TENSOR, 1, [Whether you have Tensor]) - tensor_sources="tensor.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c tensor/arithmetic.zep.c + tensor_sources="tensor.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c tensor/algebraic.zep.c -- cgit