#!/usr/bin/perl

use Math::MatrixReal;

$matrix = Math::MatrixReal->new_from_string(<<'MATRIX');
[ 1 2 ]
[ 3 4 ]
MATRIX

# Decompose the matrix into an LR form.
$inverse = $matrix->decompose_LR->invert_LR;

print $inverse;
