From a861bf46d2b7facf1e3b929f0170a826cce2b281 Mon Sep 17 00:00:00 2001 From: CismonX Date: Thu, 14 Feb 2019 19:11:36 +0800 Subject: [PATCH] update stubs --- stubs/Colvec.php | 2 + stubs/CxMat.php | 2 +- stubs/Mat.php | 8 ++-- stubs/SpMat.php | 2 +- stubs/Vec.php | 5 --- stubs/impl/CxDMat.php | 28 ------------- stubs/impl/CxIMat.php | 28 ------------- stubs/impl/DColvec.php | 10 +++++ stubs/impl/DMat.php | 22 ---------- stubs/impl/DRowvec.php | 8 ++++ stubs/impl/DVec.php | 0 stubs/impl/IMat.php | 22 ---------- stubs/internal/Accessible.php | 37 +++++++++++++++++ stubs/internal/Operable.php | 78 ++++++++++++++++++++++++++++++++++- 14 files changed, 140 insertions(+), 112 deletions(-) delete mode 100644 stubs/Vec.php delete mode 100644 stubs/impl/DVec.php diff --git a/stubs/Colvec.php b/stubs/Colvec.php index 0948ec4..c35b886 100644 --- a/stubs/Colvec.php +++ b/stubs/Colvec.php @@ -6,3 +6,5 @@ interface Colvec extends Internal\Operable { } + +class_alias(Colvec::class, 'Arma\\Vec'); diff --git a/stubs/CxMat.php b/stubs/CxMat.php index 5bb826d..8f48f7c 100644 --- a/stubs/CxMat.php +++ b/stubs/CxMat.php @@ -14,7 +14,7 @@ interface CxMat extends Mat * * @param Mat $real * @param Mat $imag - * @return CxMat + * @return static */ static function fromMats($real, $imag); } diff --git a/stubs/Mat.php b/stubs/Mat.php index 52fee5d..909c218 100644 --- a/stubs/Mat.php +++ b/stubs/Mat.php @@ -15,7 +15,7 @@ interface Mat extends Internal\Operable * @param int $in_rows * @param int $in_cols * @param int $fill[optional] - * @return Mat + * @return static */ static function init($in_rows, $in_cols, $fill); @@ -23,7 +23,7 @@ interface Mat extends Internal\Operable * Create the matrix from a textual description. * * @param string $text - * @return Mat + * @return static */ static function fromString($text); @@ -31,7 +31,7 @@ interface Mat extends Internal\Operable * Create the matrix from a column or row vector. * * @param Colvec|Rowvec $vector - * @return Mat + * @return static */ static function fromVec($vector); @@ -39,7 +39,7 @@ interface Mat extends Internal\Operable * Create the matrix from a sparse matrix. * * @param SpMat $sp_mat - * @return Mat + * @return static */ static function fromSparse($sp_mat); diff --git a/stubs/SpMat.php b/stubs/SpMat.php index d6269bd..f85f2ea 100644 --- a/stubs/SpMat.php +++ b/stubs/SpMat.php @@ -2,7 +2,7 @@ namespace Arma; -interface SpMat +interface SpMat extends Internal\Accessible { } diff --git a/stubs/Vec.php b/stubs/Vec.php deleted file mode 100644 index 0ef7fd2..0000000 --- a/stubs/Vec.php +++ /dev/null @@ -1,5 +0,0 @@ -