public function format(Matrix $mA, array $options = array())
    {
        $this->setOptions($options);
        //cast incoming matrix to base matrix to ensure compatibility with the formatter
        $output = $this->box(
                $this->getLines(
                        $this->convert(
                                new Matrix($mA->toArray())
                        )
                )
        );

        return $output;
    }
public function format(Matrix $mA, array $options = array())
    {
        $this->setOptions($options);
        //cast incoming matrix to base matrix to ensure compatibility with the formatter
        $output = $this->box(
                $this->getLines(
                        $this->convert(
                                new Matrix($mA->toArray())
                        )
                )
        );

        return $output;
    }
public function format ( Matrix $ mA , array $ options = array ( ) ) { $ this -> setOptions ( $ options ) ; //cast incoming matrix to base matrix to ensure compatibility with the formatter $ output = $ this -> box ( $ this -> getLines ( $ this -> convert ( new Matrix ( $ mA -> toArray ( ) ) ) ) ) ; return $ output ; }
Format the matrix contents for outputting

@param Matrix $mA Matrix to format
@param array $options Options for formatter

@return string
Format the matrix contents for outputting