a = Matrix::uniform(500, 500); } /** * @Subject * @Iterations(5) * @BeforeMethods({"setUpGeneral"}) * @OutputTimeUnit("seconds", precision=3) */ public function eigGeneral() : void { $this->a->eig(false); } public function setUpSymmetric() : void { $this->a = Matrix::uniform(500, 500); $this->a = $this->a->matmul($this->a); } /** * @Subject * @Iterations(5) * @BeforeMethods({"setUpSymmetric"}) * @OutputTimeUnit("seconds", precision=3) */ public function eigSymmetric() : void { $this->a->eig(true); } }