public function execute($value)
    {
        if (is_array($value)) {
            $value = new Matrix($value);
        }

        if (is_object($value) && ($value instanceof Matrix)) {
            return $this->subtractMatrix($value);
        } elseif (is_numeric($value)) {
            return $this->subtractScalar($value);
        }

        throw new Exception('Invalid argument for subtraction');
    }
public function execute($value)
    {
        if (is_array($value)) {
            $value = new Matrix($value);
        }

        if (is_object($value) && ($value instanceof Matrix)) {
            return $this->subtractMatrix($value);
        } elseif (is_numeric($value)) {
            return $this->subtractScalar($value);
        }

        throw new Exception('Invalid argument for subtraction');
    }
public function execute ( $ value ) { if ( is_array ( $ value ) ) { $ value = new Matrix ( $ value ) ; } if ( is_object ( $ value ) && ( $ value instanceof Matrix ) ) { return $ this -> subtractMatrix ( $ value ) ; } elseif ( is_numeric ( $ value ) ) { return $ this -> subtractScalar ( $ value ) ; } throw new Exception ( 'Invalid argument for subtraction' ) ; }
Execute the subtraction

@param mixed $value The matrix or numeric value to subtract from the current base value
@throws Exception If the provided argument is not appropriate for the operation
@return $this The operation object, allowing multiple subtractions to be chained
Execute the subtraction