src/LinearAlgebra/Eigenvector.php
private static function findZeroColumns(Matrix $M): array
    {
        $m = $M->getM();
        $zero_columns = [];
        for ($i = 0; $i < $M->getN(); $i++) {
            if ($M->getColumn($i) == array_fill(0, $m, 0)) {
                $zero_columns[] = $i;
            }
        }
        return $zero_columns;
    }
private static function findZeroColumns(Matrix $M): array
    {
        $m = $M->getM();
        $zero_columns = [];
        for ($i = 0; $i < $M->getN(); $i++) {
            if ($M->getColumn($i) == array_fill(0, $m, 0)) {
                $zero_columns[] = $i;
            }
        }
        return $zero_columns;
    }
private static function findZeroColumns ( Matrix $ M ) : array { $ m = $ M -> getM ( ) ; $ zero_columns = [ ] ; for ( $ i = 0 ; $ i < $ M -> getN ( ) ; $ i ++ ) { if ( $ M -> getColumn ( $ i ) == array_fill ( 0 , $ m , 0 ) ) { $ zero_columns [ ] = $ i ; } } return $ zero_columns ; }
Find the zero columns

@param  Matrix $M

@return array
Find the zero columns