diff --git a/benchmarks/Arithmetic/MatrixColumnVectorMultiplyBench.php b/benchmarks/Arithmetic/MatrixColumnVectorMultiplyBench.php index 0e8137a..2ad0877 100644 --- a/benchmarks/Arithmetic/MatrixColumnVectorMultiplyBench.php +++ b/benchmarks/Arithmetic/MatrixColumnVectorMultiplyBench.php @@ -12,7 +12,7 @@ class MatrixColumnVectorMultiplyBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Arithmetic/MatrixMatrixMultiplyBench.php b/benchmarks/Arithmetic/MatrixMatrixMultiplyBench.php index d250f2c..55799b1 100644 --- a/benchmarks/Arithmetic/MatrixMatrixMultiplyBench.php +++ b/benchmarks/Arithmetic/MatrixMatrixMultiplyBench.php @@ -11,12 +11,12 @@ class MatrixMatrixMultiplyBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $b; diff --git a/benchmarks/Arithmetic/MatrixScalarMultiplyBench.php b/benchmarks/Arithmetic/MatrixScalarMultiplyBench.php index 73aeffa..85a8d3c 100644 --- a/benchmarks/Arithmetic/MatrixScalarMultiplyBench.php +++ b/benchmarks/Arithmetic/MatrixScalarMultiplyBench.php @@ -11,7 +11,7 @@ class MatrixScalarMultiplyBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Arithmetic/MatrixSumBench.php b/benchmarks/Arithmetic/MatrixSumBench.php index 9bb3d9b..731e504 100644 --- a/benchmarks/Arithmetic/MatrixSumBench.php +++ b/benchmarks/Arithmetic/MatrixSumBench.php @@ -11,7 +11,7 @@ class MatrixSumBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Arithmetic/MatrixVectorMultiplyBench.php b/benchmarks/Arithmetic/MatrixVectorMultiplyBench.php index 510fb20..59ae8ef 100644 --- a/benchmarks/Arithmetic/MatrixVectorMultiplyBench.php +++ b/benchmarks/Arithmetic/MatrixVectorMultiplyBench.php @@ -12,12 +12,12 @@ class MatrixVectorMultiplyBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $b; diff --git a/benchmarks/Arithmetic/VectorVectorMultiplyBench.php b/benchmarks/Arithmetic/VectorVectorMultiplyBench.php index 3863ddf..edeb0f5 100644 --- a/benchmarks/Arithmetic/VectorVectorMultiplyBench.php +++ b/benchmarks/Arithmetic/VectorVectorMultiplyBench.php @@ -11,12 +11,12 @@ class VectorVectorMultiplyBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $b; diff --git a/benchmarks/Comparison/VectorVectorEqualBench.php b/benchmarks/Comparison/VectorVectorEqualBench.php index f097702..d9c6856 100644 --- a/benchmarks/Comparison/VectorVectorEqualBench.php +++ b/benchmarks/Comparison/VectorVectorEqualBench.php @@ -11,12 +11,12 @@ class VectorVectorEqualBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $b; diff --git a/benchmarks/Decompositions/CholeskyBench.php b/benchmarks/Decompositions/CholeskyBench.php index 60feee1..248c89b 100644 --- a/benchmarks/Decompositions/CholeskyBench.php +++ b/benchmarks/Decompositions/CholeskyBench.php @@ -11,7 +11,7 @@ class CholeskyBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Decompositions/EigBench.php b/benchmarks/Decompositions/EigBench.php index 5f03a73..d1eacaa 100644 --- a/benchmarks/Decompositions/EigBench.php +++ b/benchmarks/Decompositions/EigBench.php @@ -10,7 +10,7 @@ class EigBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Decompositions/LUBench.php b/benchmarks/Decompositions/LUBench.php index 25e7130..02a8c0d 100644 --- a/benchmarks/Decompositions/LUBench.php +++ b/benchmarks/Decompositions/LUBench.php @@ -11,7 +11,7 @@ class LUBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Decompositions/SVDBench.php b/benchmarks/Decompositions/SVDBench.php index 6a1e2af..386fe13 100644 --- a/benchmarks/Decompositions/SVDBench.php +++ b/benchmarks/Decompositions/SVDBench.php @@ -11,7 +11,7 @@ class SVDBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/AbsMatrixBench.php b/benchmarks/Functions/AbsMatrixBench.php index 6fdad03..9cb5830 100644 --- a/benchmarks/Functions/AbsMatrixBench.php +++ b/benchmarks/Functions/AbsMatrixBench.php @@ -11,7 +11,7 @@ class AbsMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/ExpMatrixBench.php b/benchmarks/Functions/ExpMatrixBench.php index f9aac49..53cf41a 100644 --- a/benchmarks/Functions/ExpMatrixBench.php +++ b/benchmarks/Functions/ExpMatrixBench.php @@ -11,7 +11,7 @@ class ExpMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/LogMatrixBench.php b/benchmarks/Functions/LogMatrixBench.php index 64fcfed..0bc10e8 100644 --- a/benchmarks/Functions/LogMatrixBench.php +++ b/benchmarks/Functions/LogMatrixBench.php @@ -11,7 +11,7 @@ class LogMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/ProductVectorBench.php b/benchmarks/Functions/ProductVectorBench.php index 6b4a37f..32ec503 100644 --- a/benchmarks/Functions/ProductVectorBench.php +++ b/benchmarks/Functions/ProductVectorBench.php @@ -11,7 +11,7 @@ class ProductVectorBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; diff --git a/benchmarks/Functions/SqrtMatrixBench.php b/benchmarks/Functions/SqrtMatrixBench.php index 6f26cf5..0f0010e 100644 --- a/benchmarks/Functions/SqrtMatrixBench.php +++ b/benchmarks/Functions/SqrtMatrixBench.php @@ -11,7 +11,7 @@ class SqrtMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/SquareMatrixBench.php b/benchmarks/Functions/SquareMatrixBench.php index 80fb514..9a18303 100644 --- a/benchmarks/Functions/SquareMatrixBench.php +++ b/benchmarks/Functions/SquareMatrixBench.php @@ -11,7 +11,7 @@ class SquareMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/SumMatrixBench.php b/benchmarks/Functions/SumMatrixBench.php index 4504668..8cc132f 100644 --- a/benchmarks/Functions/SumMatrixBench.php +++ b/benchmarks/Functions/SumMatrixBench.php @@ -11,7 +11,7 @@ class SumMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Functions/SumVectorBench.php b/benchmarks/Functions/SumVectorBench.php index 2c6aa9b..e919963 100644 --- a/benchmarks/Functions/SumVectorBench.php +++ b/benchmarks/Functions/SumVectorBench.php @@ -11,7 +11,7 @@ class SumVectorBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatmulBench.php b/benchmarks/LinearAlgebra/MatmulBench.php index fd6d444..2ed32f5 100644 --- a/benchmarks/LinearAlgebra/MatmulBench.php +++ b/benchmarks/LinearAlgebra/MatmulBench.php @@ -11,12 +11,12 @@ class MatmulBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $b; diff --git a/benchmarks/LinearAlgebra/MatrixDeterminantBench.php b/benchmarks/LinearAlgebra/MatrixDeterminantBench.php index caa1ee6..6e42bc4 100644 --- a/benchmarks/LinearAlgebra/MatrixDeterminantBench.php +++ b/benchmarks/LinearAlgebra/MatrixDeterminantBench.php @@ -11,7 +11,7 @@ class MatrixDeterminantBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixInfinityNormBench.php b/benchmarks/LinearAlgebra/MatrixInfinityNormBench.php index c1e1ed8..5af49bc 100644 --- a/benchmarks/LinearAlgebra/MatrixInfinityNormBench.php +++ b/benchmarks/LinearAlgebra/MatrixInfinityNormBench.php @@ -11,7 +11,7 @@ class MatrixInfinityNormBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixInverseBench.php b/benchmarks/LinearAlgebra/MatrixInverseBench.php index 4049943..e7f3736 100644 --- a/benchmarks/LinearAlgebra/MatrixInverseBench.php +++ b/benchmarks/LinearAlgebra/MatrixInverseBench.php @@ -11,7 +11,7 @@ class MatrixInverseBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixL1NormBench.php b/benchmarks/LinearAlgebra/MatrixL1NormBench.php index f50feaf..bc427eb 100644 --- a/benchmarks/LinearAlgebra/MatrixL1NormBench.php +++ b/benchmarks/LinearAlgebra/MatrixL1NormBench.php @@ -11,7 +11,7 @@ class MatrixL1NormBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixL2NormBench.php b/benchmarks/LinearAlgebra/MatrixL2NormBench.php index 19bbfec..dd5106d 100644 --- a/benchmarks/LinearAlgebra/MatrixL2NormBench.php +++ b/benchmarks/LinearAlgebra/MatrixL2NormBench.php @@ -11,7 +11,7 @@ class MatrixL2NormBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixMaxNormBench.php b/benchmarks/LinearAlgebra/MatrixMaxNormBench.php index a013193..005714f 100644 --- a/benchmarks/LinearAlgebra/MatrixMaxNormBench.php +++ b/benchmarks/LinearAlgebra/MatrixMaxNormBench.php @@ -11,7 +11,7 @@ class MatrixMaxNormBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/MatrixPseudoInverseBench.php b/benchmarks/LinearAlgebra/MatrixPseudoInverseBench.php index 6efde29..028fd1c 100644 --- a/benchmarks/LinearAlgebra/MatrixPseudoInverseBench.php +++ b/benchmarks/LinearAlgebra/MatrixPseudoInverseBench.php @@ -11,7 +11,7 @@ class MatrixPseudoinverseBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/LinearAlgebra/VectorDotProductBench.php b/benchmarks/LinearAlgebra/VectorDotProductBench.php index 7a4ba6f..3b898bd 100644 --- a/benchmarks/LinearAlgebra/VectorDotProductBench.php +++ b/benchmarks/LinearAlgebra/VectorDotProductBench.php @@ -11,12 +11,12 @@ class VectorDotProductBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $b; diff --git a/benchmarks/LinearAlgebra/VectorOuterProductBench.php b/benchmarks/LinearAlgebra/VectorOuterProductBench.php index bfa0d6f..42bf1df 100644 --- a/benchmarks/LinearAlgebra/VectorOuterProductBench.php +++ b/benchmarks/LinearAlgebra/VectorOuterProductBench.php @@ -11,12 +11,12 @@ class VectorOuterProductBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $b; diff --git a/benchmarks/Reductions/REFBench.php b/benchmarks/Reductions/REFBench.php index 38351ac..ca22871 100644 --- a/benchmarks/Reductions/REFBench.php +++ b/benchmarks/Reductions/REFBench.php @@ -11,7 +11,7 @@ class REFBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Reductions/RREFBench.php b/benchmarks/Reductions/RREFBench.php index 2acab55..69460ee 100644 --- a/benchmarks/Reductions/RREFBench.php +++ b/benchmarks/Reductions/RREFBench.php @@ -11,7 +11,7 @@ class RREFBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/SignalProcessing/MatrixConvolveBench.php b/benchmarks/SignalProcessing/MatrixConvolveBench.php index 1aaf0f4..31ab75a 100644 --- a/benchmarks/SignalProcessing/MatrixConvolveBench.php +++ b/benchmarks/SignalProcessing/MatrixConvolveBench.php @@ -11,12 +11,12 @@ class MatrixConvolveBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $kernel; diff --git a/benchmarks/SignalProcessing/VectorConvolveBench.php b/benchmarks/SignalProcessing/VectorConvolveBench.php index f66180e..8366eee 100644 --- a/benchmarks/SignalProcessing/VectorConvolveBench.php +++ b/benchmarks/SignalProcessing/VectorConvolveBench.php @@ -11,12 +11,12 @@ class VectorConvolveBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; /** - * @var \Tensor\Vector + * @var Vector */ protected $kernel; diff --git a/benchmarks/Special/MatrixClippingBench.php b/benchmarks/Special/MatrixClippingBench.php index aad80be..28bc9fe 100644 --- a/benchmarks/Special/MatrixClippingBench.php +++ b/benchmarks/Special/MatrixClippingBench.php @@ -11,12 +11,12 @@ class MatrixClippingBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $kernel; diff --git a/benchmarks/Statistical/CovarianceBench.php b/benchmarks/Statistical/CovarianceBench.php index b5621cb..0d60dc4 100644 --- a/benchmarks/Statistical/CovarianceBench.php +++ b/benchmarks/Statistical/CovarianceBench.php @@ -11,7 +11,7 @@ class CovarianceBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Statistical/MatrixMeanBench.php b/benchmarks/Statistical/MatrixMeanBench.php index d887ef5..3231084 100644 --- a/benchmarks/Statistical/MatrixMeanBench.php +++ b/benchmarks/Statistical/MatrixMeanBench.php @@ -11,7 +11,7 @@ class MatrixMeanBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Statistical/MatrixMedianBench.php b/benchmarks/Statistical/MatrixMedianBench.php index 5bb0c1b..f134023 100644 --- a/benchmarks/Statistical/MatrixMedianBench.php +++ b/benchmarks/Statistical/MatrixMedianBench.php @@ -11,7 +11,7 @@ class MatrixMedianBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Statistical/MatrixQuantileBench.php b/benchmarks/Statistical/MatrixQuantileBench.php index 6f7ac32..c8bb87c 100644 --- a/benchmarks/Statistical/MatrixQuantileBench.php +++ b/benchmarks/Statistical/MatrixQuantileBench.php @@ -11,7 +11,7 @@ class MatrixQuantileBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Statistical/MatrixVarianceBench.php b/benchmarks/Statistical/MatrixVarianceBench.php index b6ddea6..1ac07f2 100644 --- a/benchmarks/Statistical/MatrixVarianceBench.php +++ b/benchmarks/Statistical/MatrixVarianceBench.php @@ -11,7 +11,7 @@ class MatrixVarianceBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Structural/AugmentMatrixBelowBench.php b/benchmarks/Structural/AugmentMatrixBelowBench.php index 7495528..b9089d5 100644 --- a/benchmarks/Structural/AugmentMatrixBelowBench.php +++ b/benchmarks/Structural/AugmentMatrixBelowBench.php @@ -11,12 +11,12 @@ class AugmentMatrixBelowBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $b; diff --git a/benchmarks/Structural/AugmentMatrixLeftBench.php b/benchmarks/Structural/AugmentMatrixLeftBench.php index 1bb4295..6454800 100644 --- a/benchmarks/Structural/AugmentMatrixLeftBench.php +++ b/benchmarks/Structural/AugmentMatrixLeftBench.php @@ -11,12 +11,12 @@ class AugmentMatrixLeftBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; /** - * @var \Tensor\Matrix + * @var Matrix */ protected $b; diff --git a/benchmarks/Structural/FlattenMatrixBench.php b/benchmarks/Structural/FlattenMatrixBench.php index f520443..f1785d3 100644 --- a/benchmarks/Structural/FlattenMatrixBench.php +++ b/benchmarks/Structural/FlattenMatrixBench.php @@ -11,7 +11,7 @@ class FlattenMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Structural/MatrixTransposeBench.php b/benchmarks/Structural/MatrixTransposeBench.php index c64060c..8e812eb 100644 --- a/benchmarks/Structural/MatrixTransposeBench.php +++ b/benchmarks/Structural/MatrixTransposeBench.php @@ -11,7 +11,7 @@ class MatrixTransposeBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Structural/RepeatMatrixBench.php b/benchmarks/Structural/RepeatMatrixBench.php index 5f67a72..f55ac49 100644 --- a/benchmarks/Structural/RepeatMatrixBench.php +++ b/benchmarks/Structural/RepeatMatrixBench.php @@ -11,7 +11,7 @@ class RepeatMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Structural/ReshapeVectorBench.php b/benchmarks/Structural/ReshapeVectorBench.php index eb264ec..567dfeb 100644 --- a/benchmarks/Structural/ReshapeVectorBench.php +++ b/benchmarks/Structural/ReshapeVectorBench.php @@ -11,7 +11,7 @@ class ReshapeVectorBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; diff --git a/benchmarks/Trigonometric/CosMatrixBench.php b/benchmarks/Trigonometric/CosMatrixBench.php index b2d3273..36698e4 100644 --- a/benchmarks/Trigonometric/CosMatrixBench.php +++ b/benchmarks/Trigonometric/CosMatrixBench.php @@ -11,7 +11,7 @@ class CosMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Trigonometric/CosVectorBench.php b/benchmarks/Trigonometric/CosVectorBench.php index 5762c08..b666314 100644 --- a/benchmarks/Trigonometric/CosVectorBench.php +++ b/benchmarks/Trigonometric/CosVectorBench.php @@ -11,7 +11,7 @@ class CosVectorBench { /** - * @var \Tensor\Vector + * @var Vector */ protected $a; diff --git a/benchmarks/Trigonometric/SinMatrixBench.php b/benchmarks/Trigonometric/SinMatrixBench.php index 3c02cb7..2cd50bb 100644 --- a/benchmarks/Trigonometric/SinMatrixBench.php +++ b/benchmarks/Trigonometric/SinMatrixBench.php @@ -11,7 +11,7 @@ class SinMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/benchmarks/Trigonometric/TanMatrixBench.php b/benchmarks/Trigonometric/TanMatrixBench.php index 6ba95ed..1e68d83 100644 --- a/benchmarks/Trigonometric/TanMatrixBench.php +++ b/benchmarks/Trigonometric/TanMatrixBench.php @@ -11,7 +11,7 @@ class TanMatrixBench { /** - * @var \Tensor\Matrix + * @var Matrix */ protected $a; diff --git a/optimizers/TensorAddOptimizer.php b/optimizers/TensorAddOptimizer.php index 3be7173..51401b4 100644 --- a/optimizers/TensorAddOptimizer.php +++ b/optimizers/TensorAddOptimizer.php @@ -13,10 +13,10 @@ class TensorAddOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorAddScalarOptimizer.php b/optimizers/TensorAddScalarOptimizer.php index 00e85e8..17a8b23 100644 --- a/optimizers/TensorAddScalarOptimizer.php +++ b/optimizers/TensorAddScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorAddScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorCholeskyOptimizer.php b/optimizers/TensorCholeskyOptimizer.php index e32eff5..e5e237a 100644 --- a/optimizers/TensorCholeskyOptimizer.php +++ b/optimizers/TensorCholeskyOptimizer.php @@ -13,10 +13,10 @@ class TensorCholeskyOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorConvolve1dOptimizer.php b/optimizers/TensorConvolve1dOptimizer.php index a550668..8ca6346 100644 --- a/optimizers/TensorConvolve1dOptimizer.php +++ b/optimizers/TensorConvolve1dOptimizer.php @@ -13,10 +13,10 @@ class TensorConvolve1dOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorConvolve2dOptimizer.php b/optimizers/TensorConvolve2dOptimizer.php index 5d9de57..1a63d06 100644 --- a/optimizers/TensorConvolve2dOptimizer.php +++ b/optimizers/TensorConvolve2dOptimizer.php @@ -13,10 +13,10 @@ class TensorConvolve2dOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorDivideOptimizer.php b/optimizers/TensorDivideOptimizer.php index aeb0804..52dc424 100644 --- a/optimizers/TensorDivideOptimizer.php +++ b/optimizers/TensorDivideOptimizer.php @@ -13,10 +13,10 @@ class TensorDivideOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorDivideScalarOptimizer.php b/optimizers/TensorDivideScalarOptimizer.php index b768558..c0fb7b6 100644 --- a/optimizers/TensorDivideScalarOptimizer.php +++ b/optimizers/TensorDivideScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorDivideScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorDotOptimizer.php b/optimizers/TensorDotOptimizer.php index 6b5bb98..cf07ddb 100644 --- a/optimizers/TensorDotOptimizer.php +++ b/optimizers/TensorDotOptimizer.php @@ -13,10 +13,10 @@ class TensorDotOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorEigOptimizer.php b/optimizers/TensorEigOptimizer.php index 479c541..ce41d01 100644 --- a/optimizers/TensorEigOptimizer.php +++ b/optimizers/TensorEigOptimizer.php @@ -13,10 +13,10 @@ class TensorEigOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorEigSymmetricOptimizer.php b/optimizers/TensorEigSymmetricOptimizer.php index caa2b0d..1f9d970 100644 --- a/optimizers/TensorEigSymmetricOptimizer.php +++ b/optimizers/TensorEigSymmetricOptimizer.php @@ -13,10 +13,10 @@ class TensorEigSymmetricOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorEqualOptimizer.php b/optimizers/TensorEqualOptimizer.php index 3805cda..f8235fa 100644 --- a/optimizers/TensorEqualOptimizer.php +++ b/optimizers/TensorEqualOptimizer.php @@ -13,10 +13,10 @@ class TensorEqualOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorEqualScalarOptimizer.php b/optimizers/TensorEqualScalarOptimizer.php index e07c438..1718ebc 100644 --- a/optimizers/TensorEqualScalarOptimizer.php +++ b/optimizers/TensorEqualScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorEqualScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorGetNumThreadsOptimizer.php b/optimizers/TensorGetNumThreadsOptimizer.php index 8b412b9..2a01095 100644 --- a/optimizers/TensorGetNumThreadsOptimizer.php +++ b/optimizers/TensorGetNumThreadsOptimizer.php @@ -13,10 +13,10 @@ class TensorGetNumThreadsOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorGreaterEqualOptimizer.php b/optimizers/TensorGreaterEqualOptimizer.php index c1e9138..98fead3 100644 --- a/optimizers/TensorGreaterEqualOptimizer.php +++ b/optimizers/TensorGreaterEqualOptimizer.php @@ -13,10 +13,10 @@ class TensorGreaterEqualOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorGreaterEqualScalarOptimizer.php b/optimizers/TensorGreaterEqualScalarOptimizer.php index abc3d5a..efea6b9 100644 --- a/optimizers/TensorGreaterEqualScalarOptimizer.php +++ b/optimizers/TensorGreaterEqualScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorGreaterEqualScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorGreaterOptimizer.php b/optimizers/TensorGreaterOptimizer.php index 6248373..d7d5291 100644 --- a/optimizers/TensorGreaterOptimizer.php +++ b/optimizers/TensorGreaterOptimizer.php @@ -13,10 +13,10 @@ class TensorGreaterOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorGreaterScalarOptimizer.php b/optimizers/TensorGreaterScalarOptimizer.php index 0b19333..1b81ac4 100644 --- a/optimizers/TensorGreaterScalarOptimizer.php +++ b/optimizers/TensorGreaterScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorGreaterScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorInverseOptimizer.php b/optimizers/TensorInverseOptimizer.php index 2108567..39dd7c0 100644 --- a/optimizers/TensorInverseOptimizer.php +++ b/optimizers/TensorInverseOptimizer.php @@ -13,10 +13,10 @@ class TensorInverseOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorLessEqualOptimizer.php b/optimizers/TensorLessEqualOptimizer.php index 5d2457b..228e838 100644 --- a/optimizers/TensorLessEqualOptimizer.php +++ b/optimizers/TensorLessEqualOptimizer.php @@ -13,10 +13,10 @@ class TensorLessEqualOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorLessEqualScalarOptimizer.php b/optimizers/TensorLessEqualScalarOptimizer.php index 080aa08..f9f7f2a 100644 --- a/optimizers/TensorLessEqualScalarOptimizer.php +++ b/optimizers/TensorLessEqualScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorLessEqualScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorLessOptimizer.php b/optimizers/TensorLessOptimizer.php index ab81068..b967800 100644 --- a/optimizers/TensorLessOptimizer.php +++ b/optimizers/TensorLessOptimizer.php @@ -13,10 +13,10 @@ class TensorLessOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorLessScalarOptimizer.php b/optimizers/TensorLessScalarOptimizer.php index 04a5d31..78edd0c 100644 --- a/optimizers/TensorLessScalarOptimizer.php +++ b/optimizers/TensorLessScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorLessScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorLuOptimizer.php b/optimizers/TensorLuOptimizer.php index 495147e..762720e 100644 --- a/optimizers/TensorLuOptimizer.php +++ b/optimizers/TensorLuOptimizer.php @@ -13,10 +13,10 @@ class TensorLuOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorMatmulOptimizer.php b/optimizers/TensorMatmulOptimizer.php index aebb8c2..64a84e7 100644 --- a/optimizers/TensorMatmulOptimizer.php +++ b/optimizers/TensorMatmulOptimizer.php @@ -13,10 +13,10 @@ class TensorMatmulOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorModOptimizer.php b/optimizers/TensorModOptimizer.php index e0b5b8f..cd4a69f 100644 --- a/optimizers/TensorModOptimizer.php +++ b/optimizers/TensorModOptimizer.php @@ -13,10 +13,10 @@ class TensorModOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorModScalarOptimizer.php b/optimizers/TensorModScalarOptimizer.php index 5709676..1af31b9 100644 --- a/optimizers/TensorModScalarOptimizer.php +++ b/optimizers/TensorModScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorModScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorMultiplyOptimizer.php b/optimizers/TensorMultiplyOptimizer.php index 862c112..56d98e2 100644 --- a/optimizers/TensorMultiplyOptimizer.php +++ b/optimizers/TensorMultiplyOptimizer.php @@ -13,10 +13,10 @@ class TensorMultiplyOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorMultiplyScalarOptimizer.php b/optimizers/TensorMultiplyScalarOptimizer.php index ded50b8..f3ffc98 100644 --- a/optimizers/TensorMultiplyScalarOptimizer.php +++ b/optimizers/TensorMultiplyScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorMultiplyScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorNotEqualOptimizer.php b/optimizers/TensorNotEqualOptimizer.php index 4d8244b..1ed3231 100644 --- a/optimizers/TensorNotEqualOptimizer.php +++ b/optimizers/TensorNotEqualOptimizer.php @@ -13,10 +13,10 @@ class TensorNotEqualOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorNotEqualScalarOptimizer.php b/optimizers/TensorNotEqualScalarOptimizer.php index 4b20275..0cf172f 100644 --- a/optimizers/TensorNotEqualScalarOptimizer.php +++ b/optimizers/TensorNotEqualScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorNotEqualScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorPowOptimizer.php b/optimizers/TensorPowOptimizer.php index 65ad9c9..314310f 100644 --- a/optimizers/TensorPowOptimizer.php +++ b/optimizers/TensorPowOptimizer.php @@ -13,10 +13,10 @@ class TensorPowOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorPowScalarOptimizer.php b/optimizers/TensorPowScalarOptimizer.php index 71f327e..e61d233 100644 --- a/optimizers/TensorPowScalarOptimizer.php +++ b/optimizers/TensorPowScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorPowScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorPseudoinverseOptimizer.php b/optimizers/TensorPseudoinverseOptimizer.php index a584fcb..8f9b7f6 100644 --- a/optimizers/TensorPseudoinverseOptimizer.php +++ b/optimizers/TensorPseudoinverseOptimizer.php @@ -13,10 +13,10 @@ class TensorPseudoinverseOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorRefOptimizer.php b/optimizers/TensorRefOptimizer.php index c33f637..7fddde5 100644 --- a/optimizers/TensorRefOptimizer.php +++ b/optimizers/TensorRefOptimizer.php @@ -13,10 +13,10 @@ class TensorRefOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorSetNumThreadsOptimizer.php b/optimizers/TensorSetNumThreadsOptimizer.php index d866e92..a288afc 100644 --- a/optimizers/TensorSetNumThreadsOptimizer.php +++ b/optimizers/TensorSetNumThreadsOptimizer.php @@ -13,10 +13,10 @@ class TensorSetNumThreadsOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorSubtractOptimizer.php b/optimizers/TensorSubtractOptimizer.php index 1e28831..2a257d3 100644 --- a/optimizers/TensorSubtractOptimizer.php +++ b/optimizers/TensorSubtractOptimizer.php @@ -13,10 +13,10 @@ class TensorSubtractOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorSubtractScalarOptimizer.php b/optimizers/TensorSubtractScalarOptimizer.php index f16d53a..5a7810c 100644 --- a/optimizers/TensorSubtractScalarOptimizer.php +++ b/optimizers/TensorSubtractScalarOptimizer.php @@ -13,10 +13,10 @@ class TensorSubtractScalarOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/optimizers/TensorSvdOptimizer.php b/optimizers/TensorSvdOptimizer.php index dfc82ae..3dd8529 100644 --- a/optimizers/TensorSvdOptimizer.php +++ b/optimizers/TensorSvdOptimizer.php @@ -13,10 +13,10 @@ class TensorSvdOptimizer extends OptimizerAbstract { /** * @param mixed[] $expression - * @param \Zephir\Call $call - * @param \Zephir\CompilationContext $context - * @throws \Zephir\Exception\CompilerException - * @return \Zephir\CompiledExpression|bool + * @param Call $call + * @param CompilationContext $context + * @throws CompilerException + * @return CompiledExpression|bool */ public function optimize(array $expression, Call $call, CompilationContext $context) { diff --git a/src/ColumnVector.php b/src/ColumnVector.php index 14f806f..99af6a5 100644 --- a/src/ColumnVector.php +++ b/src/ColumnVector.php @@ -48,8 +48,8 @@ public function transpose() /** * Compute the vector-matrix product of this vector and matrix a. * - * @param \Tensor\Matrix $b - * @return \Tensor\Matrix + * @param Matrix $b + * @return Matrix */ public function matmul(Matrix $b) : Matrix { @@ -59,9 +59,9 @@ public function matmul(Matrix $b) : Matrix /** * Multiply this column vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function multiplyMatrix(Matrix $b) : Matrix { @@ -90,9 +90,9 @@ public function multiplyMatrix(Matrix $b) : Matrix /** * Divide this column vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function divideMatrix(Matrix $b) : Matrix { @@ -121,9 +121,9 @@ public function divideMatrix(Matrix $b) : Matrix /** * Add this column vector to a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function addMatrix(Matrix $b) : Matrix { @@ -152,9 +152,9 @@ public function addMatrix(Matrix $b) : Matrix /** * Subtract a matrix from this column vector. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function subtractMatrix(Matrix $b) : Matrix { @@ -183,9 +183,9 @@ public function subtractMatrix(Matrix $b) : Matrix /** * Raise this column vector to the power of a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function powMatrix(Matrix $b) : Matrix { @@ -214,9 +214,9 @@ public function powMatrix(Matrix $b) : Matrix /** * Mod this column vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function modMatrix(Matrix $b) : Matrix { @@ -246,9 +246,9 @@ public function modMatrix(Matrix $b) : Matrix * Return the element-wise equality comparison of this column vector * and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function equalMatrix(Matrix $b) : Matrix { @@ -278,9 +278,9 @@ public function equalMatrix(Matrix $b) : Matrix * Return the element-wise not equal comparison of this column vector * and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function notEqualMatrix(Matrix $b) : Matrix { @@ -310,9 +310,9 @@ public function notEqualMatrix(Matrix $b) : Matrix * Return the element-wise greater than comparison of this column * vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function greaterMatrix(Matrix $b) : Matrix { @@ -342,9 +342,9 @@ public function greaterMatrix(Matrix $b) : Matrix * Return the element-wise greater than or equal to comparison of * this column vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function greaterEqualMatrix(Matrix $b) : Matrix { @@ -374,9 +374,9 @@ public function greaterEqualMatrix(Matrix $b) : Matrix * Return the element-wise less than comparison of this column * vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function lessMatrix(Matrix $b) : Matrix { @@ -406,9 +406,9 @@ public function lessMatrix(Matrix $b) : Matrix * Return the element-wise less than or equal to comparison of * this column vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function lessEqualMatrix(Matrix $b) : Matrix { diff --git a/src/Decompositions/Cholesky.php b/src/Decompositions/Cholesky.php index 23acf85..a4a6c06 100644 --- a/src/Decompositions/Cholesky.php +++ b/src/Decompositions/Cholesky.php @@ -20,14 +20,14 @@ class Cholesky /** * The lower triangular matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $l; + protected Matrix $l; /** * Factory method to decompose a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @throws \Tensor\Exceptions\DimensionalityMismatch * @return self */ @@ -64,7 +64,7 @@ public static function decompose(Matrix $a) : self } /** - * @param \Tensor\Matrix $l + * @param Matrix $l */ public function __construct(Matrix $l) { @@ -74,7 +74,7 @@ public function __construct(Matrix $l) /** * Return the lower triangular matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function l() : Matrix { @@ -84,7 +84,7 @@ public function l() : Matrix /** * Return the transpose of the lower triangular matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function lT() : Matrix { diff --git a/src/Decompositions/Eigen.php b/src/Decompositions/Eigen.php index 073be02..02376b0 100644 --- a/src/Decompositions/Eigen.php +++ b/src/Decompositions/Eigen.php @@ -27,16 +27,16 @@ class Eigen /** * The eigenvectors of the eigendecomposition. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $eigenvectors; + protected Matrix $eigenvectors; /** * Factory method to decompose a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @param bool $symmetric - * @throws \Tensor\Exceptions\NotImplemented + * @throws NotImplemented * @return self */ public static function decompose(Matrix $a, bool $symmetric = false) : self @@ -46,7 +46,7 @@ public static function decompose(Matrix $a, bool $symmetric = false) : self /** * @param (int|float)[] $eigenvalues - * @param \Tensor\Matrix $eigenvectors + * @param Matrix $eigenvectors */ public function __construct(array $eigenvalues, Matrix $eigenvectors) { @@ -67,7 +67,7 @@ public function eigenvalues() : array /** * Return the eigenvectors of the eigendecomposition. * - * @return \Tensor\Matrix + * @return Matrix */ public function eigenvectors() : Matrix { diff --git a/src/Decompositions/LU.php b/src/Decompositions/LU.php index 3d2259f..0421745 100644 --- a/src/Decompositions/LU.php +++ b/src/Decompositions/LU.php @@ -22,28 +22,28 @@ class LU /** * The lower triangular matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $l; + protected Matrix $l; /** * The upper triangular matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $u; + protected Matrix $u; /** * The permutation matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $p; + protected Matrix $p; /** * Factory method to decompose a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @throws \Tensor\Exceptions\DimensionalityMismatch * @return self */ @@ -119,9 +119,9 @@ public static function decompose(Matrix $a) : self } /** - * @param \Tensor\Matrix $l - * @param \Tensor\Matrix $u - * @param \Tensor\Matrix $p + * @param Matrix $l + * @param Matrix $u + * @param Matrix $p */ public function __construct(Matrix $l, Matrix $u, Matrix $p) { @@ -133,7 +133,7 @@ public function __construct(Matrix $l, Matrix $u, Matrix $p) /** * Return the lower triangular matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function l() : Matrix { @@ -143,7 +143,7 @@ public function l() : Matrix /** * Return the upper triangular matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function u() : Matrix { @@ -153,7 +153,7 @@ public function u() : Matrix /** * Return the permutation matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function p() : Matrix { diff --git a/src/Decompositions/SVD.php b/src/Decompositions/SVD.php index 972dfaa..5b18a1d 100644 --- a/src/Decompositions/SVD.php +++ b/src/Decompositions/SVD.php @@ -17,9 +17,9 @@ class SVD /** * The U matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $u; + protected Matrix $u; /** * The singular values of the matrix A. @@ -31,14 +31,14 @@ class SVD /** * The V transposed matrix. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $vT; + protected Matrix $vT; /** * Factory method to decompose a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @return self */ public static function decompose(Matrix $a) : self @@ -47,9 +47,9 @@ public static function decompose(Matrix $a) : self } /** - * @param \Tensor\Matrix $u + * @param Matrix $u * @param list $singularValues - * @param \Tensor\Matrix $vT + * @param Matrix $vT */ public function __construct(Matrix $u, array $singularValues, Matrix $vT) { @@ -61,7 +61,7 @@ public function __construct(Matrix $u, array $singularValues, Matrix $vT) /** * Return the U matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function u() : Matrix { @@ -81,7 +81,7 @@ public function singularValues() : array /** * Return the singular value matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function s() : Matrix { @@ -91,7 +91,7 @@ public function s() : Matrix /** * Return the V matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function v() : Matrix { @@ -101,7 +101,7 @@ public function v() : Matrix /** * Return the V transposed matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function vT() : Matrix { diff --git a/src/Matrix.php b/src/Matrix.php index 9085fba..8d34596 100644 --- a/src/Matrix.php +++ b/src/Matrix.php @@ -78,7 +78,7 @@ public static function quick(array $a = []) : self * Return an identity matrix with the given dimensions. * * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function identity(int $n) : self @@ -160,7 +160,7 @@ public static function diagonal(array $elements) : self * @param float $value * @param int $m * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function fill(float $value, int $m, int $n) : self @@ -183,7 +183,7 @@ public static function fill(float $value, int $m, int $n) : self * * @param int $m * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function rand(int $m, int $n) : self @@ -220,7 +220,7 @@ public static function rand(int $m, int $n) : self * * @param int $m * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function gaussian(int $m, int $n) : self @@ -271,7 +271,7 @@ public static function gaussian(int $m, int $n) : self * @param int $m * @param int $n * @param float $lambda - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function poisson(int $m, int $n, float $lambda = 1.0) : self @@ -319,7 +319,7 @@ public static function poisson(int $m, int $n, float $lambda = 1.0) : self * * @param int $m * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function uniform(int $m, int $n) : self @@ -354,7 +354,7 @@ public static function uniform(int $m, int $n) : self /** * @param array> $a * @param bool $validate - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException */ public function __construct(array $a, bool $validate = true) { @@ -450,7 +450,7 @@ public function n() : int * Return a row as a vector from the matrix. * * @param int $index - * @return \Tensor\Vector + * @return Vector */ public function rowAsVector(int $index) : Vector { @@ -461,7 +461,7 @@ public function rowAsVector(int $index) : Vector * Return a column as a vector from the matrix. * * @param int $index - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function columnAsVector(int $index) : ColumnVector { @@ -471,8 +471,8 @@ public function columnAsVector(int $index) : ColumnVector /** * Return the diagonal elements of a square matrix as a vector. * - * @throws \Tensor\Exceptions\InvalidArgumentException - * @return \Tensor\Vector + * @throws InvalidArgumentException + * @return Vector */ public function diagonalAsVector() : Vector { @@ -529,7 +529,7 @@ public function asColumnVectors() : array /** * Flatten i.e unravel the matrix into a vector. * - * @return \Tensor\Vector + * @return Vector */ public function flatten() : Vector { @@ -637,7 +637,7 @@ public function pseudoinverse() : self /** * Calculate the determinant of the matrix. * - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return float */ public function det() : float @@ -724,8 +724,8 @@ public function symmetric() : bool /** * Multiply this matrix with another matrix (matrix-matrix product). * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function matmul(Matrix $b) : self @@ -761,9 +761,9 @@ public function matmul(Matrix $b) : self /** * Compute the dot product of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\ColumnVector + * @param Vector $b + * @throws DimensionalityMismatch + * @return ColumnVector */ public function dot(Vector $b) : ColumnVector { @@ -778,9 +778,9 @@ public function dot(Vector $b) : ColumnVector /** * Return the 2D convolution of this matrix and a kernel matrix with given stride using the "same" method for zero padding. * - * @param \Tensor\Matrix $b + * @param Matrix $b * @param int $stride - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function convolve(Matrix $b, int $stride = 1) : self @@ -842,7 +842,7 @@ public function convolve(Matrix $b, int $stride = 1) : self /** * Calculate the row echelon form (REF) of the matrix. * - * @return \Tensor\Reductions\REF + * @return REF */ public function ref() : REF { @@ -852,7 +852,7 @@ public function ref() : REF /** * Return the reduced row echelon (RREF) form of the matrix. * - * @return \Tensor\Reductions\RREF + * @return RREF */ public function rref() : RREF { @@ -862,7 +862,7 @@ public function rref() : RREF /** * Return the LU decomposition of the matrix. * - * @return \Tensor\Decompositions\LU + * @return LU */ public function lu() : LU { @@ -872,7 +872,7 @@ public function lu() : LU /** * Return the lower triangular matrix of the Cholesky decomposition. * - * @return \Tensor\Decompositions\Cholesky + * @return Cholesky */ public function cholesky() : Cholesky { @@ -883,7 +883,7 @@ public function cholesky() : Cholesky * Compute the eigenvalues and eigenvectors of the matrix. * * @param bool $symmetric - * @return \Tensor\Decompositions\Eigen + * @return Eigen */ public function eig(bool $symmetric = false) : Eigen { @@ -893,7 +893,7 @@ public function eig(bool $symmetric = false) : Eigen /** * Return the singular value decomposition (SVD) of the matrix. * - * @return \Tensor\Decompositions\SVD + * @return SVD */ public function svd() : SVD { @@ -944,7 +944,7 @@ public function maxNorm() : float * A universal function to multiply this matrix with another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function multiply($b) @@ -977,7 +977,7 @@ public function multiply($b) * A universal function to divide this matrix by another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function divide($b) @@ -1010,7 +1010,7 @@ public function divide($b) * A universal function to add this matrix with another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function add($b) @@ -1043,7 +1043,7 @@ public function add($b) * A universal function to subtract this matrix from another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function subtract($b) @@ -1077,7 +1077,7 @@ public function subtract($b) * tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function pow($b) @@ -1111,7 +1111,7 @@ public function pow($b) * and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function mod($b) @@ -1145,7 +1145,7 @@ public function mod($b) * this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function equal($b) @@ -1179,7 +1179,7 @@ public function equal($b) * this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function notEqual($b) @@ -1213,7 +1213,7 @@ public function notEqual($b) * this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function greater($b) @@ -1247,7 +1247,7 @@ public function greater($b) * comparison of this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function greaterEqual($b) @@ -1281,7 +1281,7 @@ public function greaterEqual($b) * this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function less($b) @@ -1315,7 +1315,7 @@ public function less($b) * comparison of this matrix and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function lessEqual($b) @@ -1521,7 +1521,7 @@ public function deg2rad() : self /** * Sum the rows of the matrix and return a vector. * - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function sum() : ColumnVector { @@ -1531,7 +1531,7 @@ public function sum() : ColumnVector /** * Calculate the row product of the matrix. * - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function product() : ColumnVector { @@ -1541,7 +1541,7 @@ public function product() : ColumnVector /** * Return the minimum of each row in the matrix. * - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function min() : ColumnVector { @@ -1551,7 +1551,7 @@ public function min() : ColumnVector /** * Return the maximum of each row in the matrix. * - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function max() : ColumnVector { @@ -1561,8 +1561,8 @@ public function max() : ColumnVector /** * Compute the means of each row and return them in a vector. * - * @throws \Tensor\Exceptions\InvalidArgumentException - * @return \Tensor\ColumnVector + * @throws InvalidArgumentException + * @return ColumnVector */ public function mean() : ColumnVector { @@ -1572,10 +1572,10 @@ public function mean() : ColumnVector /** * Compute the row variance of the matrix. * - * @param \Tensor\ColumnVector|null $mean - * @throws \Tensor\Exceptions\InvalidArgumentException - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\ColumnVector + * @param ColumnVector|null $mean + * @throws InvalidArgumentException + * @throws DimensionalityMismatch + * @return ColumnVector */ public function variance($mean = null) : ColumnVector { @@ -1601,7 +1601,7 @@ public function variance($mean = null) : ColumnVector /** * Return the median vector of this matrix. * - * @return \Tensor\ColumnVector + * @return ColumnVector */ public function median() : ColumnVector { @@ -1630,8 +1630,8 @@ public function median() : ColumnVector * Compute the q'th quantile of the matrix. * * @param float $q - * @throws \Tensor\Exceptions\InvalidArgumentException - * @return \Tensor\ColumnVector + * @throws InvalidArgumentException + * @return ColumnVector */ public function quantile(float $q) : ColumnVector { @@ -1662,8 +1662,8 @@ public function quantile(float $q) : ColumnVector /** * Compute the covariance matrix. * - * @param \Tensor\ColumnVector|null $mean - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector|null $mean + * @throws DimensionalityMismatch * @return self */ public function covariance(?ColumnVector $mean = null) : self @@ -1687,7 +1687,7 @@ public function covariance(?ColumnVector $mean = null) : self * Round the elements in the matrix to a given decimal place. * * @param int $precision - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function round(int $precision = 0) : self @@ -1738,7 +1738,7 @@ public function ceil() : self * * @param float $min * @param float $max - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function clip(float $min, float $max) : self @@ -1885,8 +1885,8 @@ public function negate() : self /** * Attach matrix b above this matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function augmentAbove(Matrix $b) : self @@ -1902,8 +1902,8 @@ public function augmentAbove(Matrix $b) : self /** * Attach matrix b below this matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function augmentBelow(Matrix $b) : self @@ -1919,8 +1919,8 @@ public function augmentBelow(Matrix $b) : self /** * Attach matrix b to the left of this matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function augmentLeft(Matrix $b) : self @@ -1936,8 +1936,8 @@ public function augmentLeft(Matrix $b) : self /** * Attach matrix b to the left of this matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function augmentRight(Matrix $b) : self @@ -1987,8 +1987,8 @@ public function repeat(int $m, int $n) : self /** * Return the element-wise product between this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function multiplyMatrix(Matrix $b) : self @@ -2018,8 +2018,8 @@ public function multiplyMatrix(Matrix $b) : self /** * Return the division of two elements, element-wise. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function divideMatrix(Matrix $b) : self @@ -2049,8 +2049,8 @@ public function divideMatrix(Matrix $b) : self /** * Add this matrix together with another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function addMatrix(Matrix $b) : self @@ -2080,8 +2080,8 @@ public function addMatrix(Matrix $b) : self /** * Subtract a matrix from this matrix element-wise. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function subtractMatrix(Matrix $b) : self @@ -2111,8 +2111,8 @@ public function subtractMatrix(Matrix $b) : self /** * Raise this matrix to the power of the element-wise entry in another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function powMatrix(Matrix $b) : self @@ -2142,8 +2142,8 @@ public function powMatrix(Matrix $b) : self /** * Calculate the modulus i.e remainder of division between this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function modMatrix(Matrix $b) : self @@ -2173,8 +2173,8 @@ public function modMatrix(Matrix $b) : self /** * Return the element-wise equality comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function equalMatrix(Matrix $b) : self @@ -2204,8 +2204,8 @@ public function equalMatrix(Matrix $b) : self /** * Return the element-wise not equal comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function notEqualMatrix(Matrix $b) : self @@ -2235,8 +2235,8 @@ public function notEqualMatrix(Matrix $b) : self /** * Return the element-wise greater than comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function greaterMatrix(Matrix $b) : self @@ -2266,8 +2266,8 @@ public function greaterMatrix(Matrix $b) : self /** * Return the element-wise greater than or equal to comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function greaterEqualMatrix(Matrix $b) : self @@ -2297,8 +2297,8 @@ public function greaterEqualMatrix(Matrix $b) : self /** * Return the element-wise less than comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function lessMatrix(Matrix $b) : self @@ -2328,8 +2328,8 @@ public function lessMatrix(Matrix $b) : self /** * Return the element-wise less than or equal to comparison of this matrix and another matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Matrix $b + * @throws DimensionalityMismatch * @return self */ public function lessEqualMatrix(Matrix $b) : self @@ -2359,8 +2359,8 @@ public function lessEqualMatrix(Matrix $b) : self /** * Multiply this matrix by a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function multiplyVector(Vector $b) : self @@ -2390,8 +2390,8 @@ public function multiplyVector(Vector $b) : self /** * Divide this matrix by a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function divideVector(Vector $b) : self @@ -2421,8 +2421,8 @@ public function divideVector(Vector $b) : self /** * Add this matrix by a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function addVector(Vector $b) : self @@ -2452,8 +2452,8 @@ public function addVector(Vector $b) : self /** * Subtract a vector from this matrix. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function subtractVector(Vector $b) : self @@ -2483,8 +2483,8 @@ public function subtractVector(Vector $b) : self /** * Raise this matrix to the power of a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function powVector(Vector $b) : self @@ -2514,8 +2514,8 @@ public function powVector(Vector $b) : self /** * Calculate the modulus of this matrix with a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function modVector(Vector $b) : self @@ -2545,8 +2545,8 @@ public function modVector(Vector $b) : self /** * Return the element-wise equality comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function equalVector(Vector $b) : self @@ -2576,8 +2576,8 @@ public function equalVector(Vector $b) : self /** * Return the element-wise not equal comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function notEqualVector(Vector $b) : self @@ -2607,8 +2607,8 @@ public function notEqualVector(Vector $b) : self /** * Return the element-wise greater than comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function greaterVector(Vector $b) : self @@ -2638,8 +2638,8 @@ public function greaterVector(Vector $b) : self /** * Return the element-wise greater than or equal to comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function greaterEqualVector(Vector $b) : self @@ -2669,8 +2669,8 @@ public function greaterEqualVector(Vector $b) : self /** * Return the element-wise less than comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function lessVector(Vector $b) : self @@ -2700,8 +2700,8 @@ public function lessVector(Vector $b) : self /** * Return the element-wise less than or equal to comparison of this matrix and a vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function lessEqualVector(Vector $b) : self @@ -2731,8 +2731,8 @@ public function lessEqualVector(Vector $b) : self /** * Multiply this matrix with a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function multiplyColumnVector(ColumnVector $b) : self @@ -2762,8 +2762,8 @@ public function multiplyColumnVector(ColumnVector $b) : self /** * Divide this matrix with a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function divideColumnVector(ColumnVector $b) : self @@ -2793,8 +2793,8 @@ public function divideColumnVector(ColumnVector $b) : self /** * Add this matrix to a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function addColumnVector(ColumnVector $b) : self @@ -2824,8 +2824,8 @@ public function addColumnVector(ColumnVector $b) : self /** * Subtract a column vector from this matrix. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function subtractColumnVector(ColumnVector $b) : self @@ -2855,8 +2855,8 @@ public function subtractColumnVector(ColumnVector $b) : self /** * Raise this matrix to the power of a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function powColumnVector(ColumnVector $b) : self @@ -2886,8 +2886,8 @@ public function powColumnVector(ColumnVector $b) : self /** * Mod this matrix with a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function modColumnVector(ColumnVector $b) : self @@ -2917,8 +2917,8 @@ public function modColumnVector(ColumnVector $b) : self /** * Return the element-wise equality comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function equalColumnVector(ColumnVector $b) : self @@ -2948,8 +2948,8 @@ public function equalColumnVector(ColumnVector $b) : self /** * Return the element-wise not equal comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function notEqualColumnVector(ColumnVector $b) : self @@ -2979,8 +2979,8 @@ public function notEqualColumnVector(ColumnVector $b) : self /** * Return the element-wise greater than comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function greaterColumnVector(ColumnVector $b) : self @@ -3010,8 +3010,8 @@ public function greaterColumnVector(ColumnVector $b) : self /** * Return the element-wise greater than or equal to comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function greaterEqualColumnVector(ColumnVector $b) : self @@ -3041,8 +3041,8 @@ public function greaterEqualColumnVector(ColumnVector $b) : self /** * Return the element-wise less than comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function lessColumnVector(ColumnVector $b) : self @@ -3072,8 +3072,8 @@ public function lessColumnVector(ColumnVector $b) : self /** * Return the element-wise less than or equal to comparison of this matrix and a column vector. * - * @param \Tensor\ColumnVector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param ColumnVector $b + * @throws DimensionalityMismatch * @return self */ public function lessEqualColumnVector(ColumnVector $b) : self @@ -3387,7 +3387,7 @@ public function count() : int /** * @param mixed $index * @param mixed $values - * @throws \Tensor\Exceptions\RuntimeException + * @throws RuntimeException */ public function offsetSet($index, $values) : void { @@ -3407,7 +3407,7 @@ public function offsetExists($index) : bool /** * @param mixed $index - * @throws \Tensor\Exceptions\RuntimeException + * @throws RuntimeException */ public function offsetUnset($index) : void { @@ -3418,8 +3418,8 @@ public function offsetUnset($index) : void * Return a row from the matrix at the given index. * * @param mixed $index - * @throws \Tensor\Exceptions\InvalidArgumentException - * @return \Tensor\Vector + * @throws InvalidArgumentException + * @return Vector */ public function offsetGet($index) : Vector { diff --git a/src/Reductions/REF.php b/src/Reductions/REF.php index 7091c2b..0310755 100644 --- a/src/Reductions/REF.php +++ b/src/Reductions/REF.php @@ -24,9 +24,9 @@ class REF /** * The reduced matrix in row echelon form. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $a; + protected Matrix $a; /** * The number of swaps made to compute the row echelon form of the matrix. @@ -38,7 +38,7 @@ class REF /** * Factory method to decompose a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @return self */ public static function reduce(Matrix $a) @@ -53,8 +53,8 @@ public static function reduce(Matrix $a) /** * Calculate the row echelon form (REF) of the matrix using Gaussian elimination. * - * @param \Tensor\Matrix $a - * @throws \Tensor\Exceptions\RuntimeException + * @param Matrix $a + * @throws RuntimeException * @return self */ public static function gaussianElimination(Matrix $a) : self @@ -110,7 +110,7 @@ public static function gaussianElimination(Matrix $a) : self * Calculate the row echelon form (REF) of the matrix using the row * reduction method. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @return self */ public static function rowReductionMethod(Matrix $a) : self @@ -173,9 +173,9 @@ public static function rowReductionMethod(Matrix $a) : self } /** - * @param \Tensor\Matrix $a + * @param Matrix $a * @param int $swaps - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException */ public function __construct(Matrix $a, int $swaps) { @@ -191,7 +191,7 @@ public function __construct(Matrix $a, int $swaps) /** * Return the reduced matrix in row echelon form. * - * @return \Tensor\Matrix + * @return Matrix */ public function a() : Matrix { diff --git a/src/Reductions/RREF.php b/src/Reductions/RREF.php index 9ae5765..22bc60a 100644 --- a/src/Reductions/RREF.php +++ b/src/Reductions/RREF.php @@ -18,14 +18,14 @@ class RREF /** * The reduced matrix in reduced row echelon form. * - * @var \Tensor\Matrix + * @var Matrix */ - protected \Tensor\Matrix $a; + protected Matrix $a; /** * Factory method to reduce a matrix. * - * @param \Tensor\Matrix $a + * @param Matrix $a * @return self */ public static function reduce(Matrix $a) : self @@ -81,7 +81,7 @@ public static function reduce(Matrix $a) : self } /** - * @param \Tensor\Matrix $a + * @param Matrix $a * @throws \Tensor\Exceptions\InvalidArgumentException */ public function __construct(Matrix $a) @@ -92,7 +92,7 @@ public function __construct(Matrix $a) /** * Return the reduced matrix in reduced row echelon form. * - * @return \Tensor\Matrix + * @return Matrix */ public function a() : Matrix { diff --git a/src/Vector.php b/src/Vector.php index 773d520..2d8d531 100644 --- a/src/Vector.php +++ b/src/Vector.php @@ -88,7 +88,7 @@ public static function ones(int $n) : self * * @param float $value * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function fill(float $value, int $n) : self @@ -105,7 +105,7 @@ public static function fill(float $value, int $n) : self * Return a random uniform vector with values between 0 and 1. * * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function rand(int $n) : self @@ -131,7 +131,7 @@ public static function rand(int $n) : self * and unit variance. * * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function gaussian(int $n) : self @@ -166,7 +166,7 @@ public static function gaussian(int $n) : self * * @param int $n * @param float $lambda - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function poisson(int $n, float $lambda = 1.0) : self @@ -202,7 +202,7 @@ public static function poisson(int $n, float $lambda = 1.0) : self * Return a uniform random vector with mean 0 and unit variance. * * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function uniform(int $n) : self @@ -242,7 +242,7 @@ public static function range(float $start, float $end, float $interval = 1.0) : * @param float $min * @param float $max * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public static function linspace(float $min, float $max, int $n) : self @@ -355,7 +355,7 @@ public function asArray() : array /** * Return this vector as a row matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function asRowMatrix() : Matrix { @@ -365,7 +365,7 @@ public function asRowMatrix() : Matrix /** * Return this vector as a column matrix. * - * @return \Tensor\Matrix + * @return Matrix */ public function asColumnMatrix() : Matrix { @@ -383,8 +383,8 @@ public function asColumnMatrix() : Matrix * * @param int $m * @param int $n - * @throws \Tensor\Exceptions\InvalidArgumentException - * @return \Tensor\Matrix + * @throws InvalidArgumentException + * @return Matrix */ public function reshape(int $m, int $n) : Matrix { @@ -452,8 +452,8 @@ public function reduce(callable $callback, float $initial = 0.0) : float /** * Compute the dot product of this vector and another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return float */ public function dot(Vector $b) : float @@ -475,8 +475,8 @@ public function dot(Vector $b) : float /** * Compute the vector-matrix product of this vector and matrix a. * - * @param \Tensor\Matrix $b - * @return \Tensor\Matrix + * @param Matrix $b + * @return Matrix */ public function matmul(Matrix $b) : Matrix { @@ -486,7 +486,7 @@ public function matmul(Matrix $b) : Matrix /** * Return the inner product of two vectors. * - * @param \Tensor\Vector $b + * @param Vector $b * @return float */ public function inner(Vector $b) : float @@ -497,8 +497,8 @@ public function inner(Vector $b) : float /** * Calculate the outer product of this and another vector. * - * @param \Tensor\Vector $b - * @return \Tensor\Matrix + * @param Vector $b + * @return Matrix */ public function outer(Vector $b) : Matrix { @@ -522,9 +522,9 @@ public function outer(Vector $b) : Matrix /** * Return the 1D convolution of this vector and a kernel vector with given stride. * - * @param \Tensor\Vector $b + * @param Vector $b * @param int $stride - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function convolve(Vector $b, int $stride = 1) : self @@ -587,7 +587,7 @@ public function l2Norm() : float * Calculate the p-norm of the vector. * * @param float $p - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return float */ public function pNorm(float $p = 3.0) : float @@ -613,7 +613,7 @@ public function maxNorm() : float * A universal function to multiply this vector with another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function multiply($b) @@ -643,7 +643,7 @@ public function multiply($b) * A universal function to divide this vector by another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function divide($b) @@ -673,7 +673,7 @@ public function divide($b) * A universal function to add this vector with another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function add($b) @@ -703,7 +703,7 @@ public function add($b) * A universal function to subtract this vector from another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function subtract($b) @@ -734,7 +734,7 @@ public function subtract($b) * tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function pow($b) @@ -765,7 +765,7 @@ public function pow($b) * another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function mod($b) @@ -796,7 +796,7 @@ public function mod($b) * this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function equal($b) @@ -827,7 +827,7 @@ public function equal($b) * this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function notEqual($b) @@ -858,7 +858,7 @@ public function notEqual($b) * this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function greater($b) @@ -889,7 +889,7 @@ public function greater($b) * comparison of this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function greaterEqual($b) @@ -920,7 +920,7 @@ public function greaterEqual($b) * this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function less($b) @@ -951,7 +951,7 @@ public function less($b) * comparison of this vector and another tensor element-wise. * * @param mixed $b - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return mixed */ public function lessEqual($b) @@ -1221,7 +1221,7 @@ public function median() : float * Return the q'th quantile of the vector. * * @param float $q - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return float */ public function quantile(float $q) : float @@ -1269,7 +1269,7 @@ public function variance($mean = null) : float * Round the elements in the matrix to a given decimal place. * * @param int $precision - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function round(int $precision = 0) : self @@ -1314,7 +1314,7 @@ public function ceil() : self * * @param float $min * @param float $max - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return self */ public function clip(float $min, float $max) : self @@ -1432,9 +1432,9 @@ public function negate() : self /** * Multiply this vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function multiplyMatrix(Matrix $b) : Matrix { @@ -1461,9 +1461,9 @@ public function multiplyMatrix(Matrix $b) : Matrix /** * Divide this vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function divideMatrix(Matrix $b) : Matrix { @@ -1490,9 +1490,9 @@ public function divideMatrix(Matrix $b) : Matrix /** * Add this vector to a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function addMatrix(Matrix $b) : Matrix { @@ -1519,9 +1519,9 @@ public function addMatrix(Matrix $b) : Matrix /** * Subtract a matrix from this vector. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function subtractMatrix(Matrix $b) : Matrix { @@ -1548,9 +1548,9 @@ public function subtractMatrix(Matrix $b) : Matrix /** * Raise this vector to the power of a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function powMatrix(Matrix $b) : Matrix { @@ -1577,9 +1577,9 @@ public function powMatrix(Matrix $b) : Matrix /** * Mod this vector with a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function modMatrix(Matrix $b) : Matrix { @@ -1606,9 +1606,9 @@ public function modMatrix(Matrix $b) : Matrix /** * Return the element-wise equality comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function equalMatrix(Matrix $b) : Matrix { @@ -1635,9 +1635,9 @@ public function equalMatrix(Matrix $b) : Matrix /** * Return the element-wise not equal comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function notEqualMatrix(Matrix $b) : Matrix { @@ -1664,9 +1664,9 @@ public function notEqualMatrix(Matrix $b) : Matrix /** * Return the element-wise greater than comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function greaterMatrix(Matrix $b) : Matrix { @@ -1693,9 +1693,9 @@ public function greaterMatrix(Matrix $b) : Matrix /** * Return the element-wise greater than or equal to comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function greaterEqualMatrix(Matrix $b) : Matrix { @@ -1722,9 +1722,9 @@ public function greaterEqualMatrix(Matrix $b) : Matrix /** * Return the element-wise less than comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function lessMatrix(Matrix $b) : Matrix { @@ -1751,9 +1751,9 @@ public function lessMatrix(Matrix $b) : Matrix /** * Return the element-wise less than or equal to comparison of this vector and a matrix. * - * @param \Tensor\Matrix $b - * @throws \Tensor\Exceptions\DimensionalityMismatch - * @return \Tensor\Matrix + * @param Matrix $b + * @throws DimensionalityMismatch + * @return Matrix */ public function lessEqualMatrix(Matrix $b) : Matrix { @@ -1780,8 +1780,8 @@ public function lessEqualMatrix(Matrix $b) : Matrix /** * Multiply this vector with another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function multiplyVector(Vector $b) : self @@ -1803,8 +1803,8 @@ public function multiplyVector(Vector $b) : self /** * Divide this vector by another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function divideVector(Vector $b) : self @@ -1826,8 +1826,8 @@ public function divideVector(Vector $b) : self /** * Add this vector to another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function addVector(Vector $b) : self @@ -1849,8 +1849,8 @@ public function addVector(Vector $b) : self /** * Subtract a vector from this vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function subtractVector(Vector $b) : self @@ -1872,8 +1872,8 @@ public function subtractVector(Vector $b) : self /** * Raise this vector to a power of another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function powVector(Vector $b) : self @@ -1895,8 +1895,8 @@ public function powVector(Vector $b) : self /** * Calculate the modulus of this vector with another vector element-wise. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function modVector(Vector $b) : self @@ -1918,8 +1918,8 @@ public function modVector(Vector $b) : self /** * Return the element-wise equality comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function equalVector(Vector $b) : self @@ -1941,8 +1941,8 @@ public function equalVector(Vector $b) : self /** * Return the element-wise not equal comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function notEqualVector(Vector $b) : self @@ -1964,8 +1964,8 @@ public function notEqualVector(Vector $b) : self /** * Return the element-wise greater than comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return self */ public function greaterVector(Vector $b) : self @@ -1987,8 +1987,8 @@ public function greaterVector(Vector $b) : self /** * Return the element-wise greater than or equal to comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function greaterEqualVector(Vector $b) : self @@ -2010,8 +2010,8 @@ public function greaterEqualVector(Vector $b) : self /** * Return the element-wise less than comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function lessVector(Vector $b) : self @@ -2033,8 +2033,8 @@ public function lessVector(Vector $b) : self /** * Return the element-wise less than or equal to comparison of this vector and a another vector. * - * @param \Tensor\Vector $b - * @throws \Tensor\Exceptions\DimensionalityMismatch + * @param Vector $b + * @throws DimensionalityMismatch * @return static */ public function lessEqualVector(Vector $b) : self @@ -2270,7 +2270,7 @@ public function count() : int /** * @param mixed $index * @param mixed[] $values - * @throws \Tensor\Exceptions\RuntimeException + * @throws RuntimeException */ #[\ReturnTypeWillChange] public function offsetSet($index, $values) : void @@ -2291,7 +2291,7 @@ public function offsetExists($index) : bool /** * @param mixed $index - * @throws \Tensor\Exceptions\RuntimeException + * @throws RuntimeException */ public function offsetUnset($index) : void { @@ -2302,7 +2302,7 @@ public function offsetUnset($index) : void * Return a row from the matrix at the given index. * * @param mixed $index - * @throws \Tensor\Exceptions\InvalidArgumentException + * @throws InvalidArgumentException * @return float */ #[\ReturnTypeWillChange] diff --git a/tests/MatrixTest.php b/tests/MatrixTest.php index be55dd8..0c71929 100644 --- a/tests/MatrixTest.php +++ b/tests/MatrixTest.php @@ -210,7 +210,7 @@ public function shapeString() : void * @test * @dataProvider isSquareProvider * - * @param \Tensor\Matrix $matrix + * @param Matrix $matrix * @param bool $expected */ public function isSquare(Matrix $matrix, $expected) : void @@ -517,7 +517,7 @@ public function trace() : void * @test * @dataProvider symmetricProvider * - * @param \Tensor\Matrix $matrix + * @param Matrix $matrix * @param bool $expected */ public function symmetric(Matrix $matrix, $expected) : void @@ -738,8 +738,8 @@ public function cholesky() : void * @requires extension tensor * @dataProvider eigProvider * - * @param \Tensor\Matrix $matrix - * @param \Tensor\Decompositions\Eigen $expected + * @param Matrix $matrix + * @param Eigen $expected */ public function eig(Matrix $matrix, Eigen $expected) : void { @@ -918,9 +918,9 @@ public function convolve() : void * @test * @dataProvider multiplyProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function multiply(Matrix $a, $b, $expected) : void { @@ -999,9 +999,9 @@ public function multiplyProvider() : Generator * @test * @dataProvider divideProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function divide(Matrix $a, $b, $expected) : void { @@ -1080,9 +1080,9 @@ public function divideProvider() : Generator * @test * @dataProvider addProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function add(Matrix $a, $b, $expected) : void { @@ -1161,9 +1161,9 @@ public function addProvider() : Generator * @test * @dataProvider subtractProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function subtract(Matrix $a, $b, $expected) : void { @@ -1242,9 +1242,9 @@ public function subtractProvider() : Generator * @test * @dataProvider powProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function pow(Matrix $a, $b, $expected) : void { @@ -1309,9 +1309,9 @@ public function powProvider() : Generator * @test * @dataProvider modProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function mod(Matrix $a, $b, $expected) : void { @@ -1390,9 +1390,9 @@ public function modProvider() : Generator * @test * @dataProvider equalProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function equal(Matrix $a, $b, $expected) : void { @@ -1471,9 +1471,9 @@ public function equalProvider() : Generator * @test * @dataProvider notEqualProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function notEqual(Matrix $a, $b, $expected) : void { @@ -1552,9 +1552,9 @@ public function notEqualProvider() : Generator * @test * @dataProvider greaterProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function greater(Matrix $a, $b, $expected) : void { @@ -1633,9 +1633,9 @@ public function greaterProvider() : Generator * @test * @dataProvider greaterEqualProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function greaterEqual(Matrix $a, $b, $expected) : void { @@ -1714,9 +1714,9 @@ public function greaterEqualProvider() : Generator * @test * @dataProvider lessProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function less(Matrix $a, $b, $expected) : void { @@ -1795,9 +1795,9 @@ public function lessProvider() : Generator * @test * @dataProvider lessEqualProvider * - * @param \Tensor\Matrix $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Matrix $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function lessEqual(Matrix $a, $b, $expected) : void { diff --git a/tests/VectorTest.php b/tests/VectorTest.php index 75b5f73..4195c3f 100644 --- a/tests/VectorTest.php +++ b/tests/VectorTest.php @@ -153,7 +153,7 @@ public function linspace() : void * @test * @dataProvider shapeProvider * - * @param \Tensor\Vector $vector + * @param Vector $vector * @param array $expected */ public function shape(Vector $vector, array $expected) : void @@ -421,9 +421,9 @@ public function convolve() : void * @test * @dataProvider multiplyProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function multiply(Vector $a, $b, $expected) : void { @@ -468,9 +468,9 @@ public function multiplyProvider() : Generator * @test * @dataProvider divideProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function divide(Vector $a, $b, $expected) : void { @@ -515,9 +515,9 @@ public function divideProvider() : Generator * @test * @dataProvider addProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function add(Vector $a, $b, $expected) : void { @@ -562,9 +562,9 @@ public function addProvider() : Generator * @test * @dataProvider subtractProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function subtract(Vector $a, $b, $expected) : void { @@ -609,9 +609,9 @@ public function subtractProvider() : Generator * @test * @dataProvider powProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function power(Vector $a, $b, $expected) : void { @@ -658,9 +658,9 @@ public function powProvider() : Generator * @test * @dataProvider equalProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function equal(Vector $a, $b, $expected) : void { @@ -705,9 +705,9 @@ public function equalProvider() : Generator * @test * @dataProvider notEqualProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function notEqual(Vector $a, $b, $expected) : void { @@ -752,9 +752,9 @@ public function notEqualProvider() : Generator * @test * @dataProvider greaterProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function greater(Vector $a, $b, $expected) : void { @@ -799,9 +799,9 @@ public function greaterProvider() : Generator * @test * @dataProvider greaterEqualProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function greaterEqual(Vector $a, $b, $expected) : void { @@ -846,9 +846,9 @@ public function greaterEqualProvider() : Generator * @test * @dataProvider lessProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function less(Vector $a, $b, $expected) : void { @@ -893,9 +893,9 @@ public function lessProvider() : Generator * @test * @dataProvider lessEqualProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function lessEqual(Vector $a, $b, $expected) : void { @@ -941,9 +941,9 @@ public function lessEqualProvider() : Generator * @test * @dataProvider modProvider * - * @param \Tensor\Vector $a - * @param \Tensor\Tensor|float $b - * @param \Tensor\Tensor|float $expected + * @param Vector $a + * @param Tensor|float $b + * @param Tensor|float $expected */ public function mod(Vector $a, $b, $expected) : void {