public static boolean assertMatricesEqual(double[][] first,
			double[][] second, int decimalPlaces) {

		int firstRows = first.length;
		int secondRows = second.length;

		if (firstRows != secondRows) {

			return false;

		}

		for (int row = 0; row < firstRows; row++) {

			double[] firstRow = first[row];
			double[] secondRow = second[row];

			if (!assertVectorsEqual(firstRow, secondRow, decimalPlaces)) {

				return false;

			}

		}

		return true;

	}