public function getEigenvectors()
    {
        $vectors = $this->V;

        // Always return the eigenvectors of length 1.0
        $vectors = new Matrix($vectors);
        $vectors = array_map(function ($vect) {
            $sum = 0;
            for ($i = 0; $i < count($vect); ++$i) {
                $sum += $vect[$i] ** 2;
            }

            $sum = sqrt($sum);
            for ($i = 0; $i < count($vect); ++$i) {
                $vect[$i] /= $sum;
            }

            return $vect;
        }, $vectors->transpose()->toArray());

        return $vectors;
    }
public function getEigenvectors()
    {
        $vectors = $this->V;

        // Always return the eigenvectors of length 1.0
        $vectors = new Matrix($vectors);
        $vectors = array_map(function ($vect) {
            $sum = 0;
            for ($i = 0; $i < count($vect); ++$i) {
                $sum += $vect[$i] ** 2;
            }

            $sum = sqrt($sum);
            for ($i = 0; $i < count($vect); ++$i) {
                $vect[$i] /= $sum;
            }

            return $vect;
        }, $vectors->transpose()->toArray());

        return $vectors;
    }
public function getEigenvectors ( ) { $ vectors = $ this -> V ; // Always return the eigenvectors of length 1.0 $ vectors = new Matrix ( $ vectors ) ; $ vectors = array_map ( function ( $ vect ) { $ sum = 0 ; for ( $ i = 0 ; $ i < count ( $ vect ) ; ++ $ i ) { $ sum += $ vect [ $ i ] ** 2 ; } $ sum = sqrt ( $ sum ) ; for ( $ i = 0 ; $ i < count ( $ vect ) ; ++ $ i ) { $ vect [ $ i ] /= $ sum ; } return $ vect ; } , $ vectors -> transpose ( ) -> toArray ( ) ) ; return $ vectors ; }
Return the eigenvector matrix

@access public

@return array
Return the eigenvector matrix