	@Test
	public void testMinAbsDiag() {

		Matrix X = new Matrix( new double[][] {
				{ 5, -4},
				{-4,  6},
		});
		assertEquals(5, MatrixUtils.minAbsDiag(X), 0.000001);
		
		X = new Matrix( new double[][] {
				{ 5, -1},
				{-4,  -2},
		});
		assertEquals(2, MatrixUtils.minAbsDiag(X), 0.000001);
	}